From 9bf9c3e826e60d90938266a09eb7f4093a47cf1b Mon Sep 17 00:00:00 2001 From: Sheetal Tigadoli Date: Thu, 10 Apr 2025 06:56:08 +0000 Subject: [PATCH] drivers:nvpps:remove unused soc id enum remove unused soc id enum. This is not needed anymore as we use different compatible str and associated static initialized data struct bug 5175333 Signed-off-by: Sheetal Tigadoli Change-Id: Ia6cd5cb8ab22f3c06373ea686e7a4f962e3b366e Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3337822 Reviewed-by: Vijay Mishra GVS: buildbot_gerritrpt Reviewed-by: Sumeet Gupta Reviewed-by: svcacv Reviewed-by: Kiran Kumar Bobbu --- drivers/nvpps/nvpps_common.h | 7 ------- drivers/nvpps/nvpps_t23x.c | 1 - drivers/nvpps/nvpps_t26x.c | 1 - 3 files changed, 9 deletions(-) diff --git a/drivers/nvpps/nvpps_common.h b/drivers/nvpps/nvpps_common.h index 56a0189b..3d900dff 100644 --- a/drivers/nvpps/nvpps_common.h +++ b/drivers/nvpps/nvpps_common.h @@ -10,14 +10,8 @@ struct soc_dev_data; -enum { - NV_SOC_T23X = 0U, - NV_SOC_T26X, -}; - /* * chip specific ops - * @soc_id: chip id (NV_SOC_T23X or NV_SOC_T26X) * @ptp_tsc_sync_cfg_fn: function pointer for PTP-TSC sync related TSC HW configuration * @ptp_tsc_synchronize_fn: function pointer for triggering PTP-TSC synchronization * @ptp_tsc_get_is_locked_fn: function pointer to get PTP-TSC sync status, return boolean true if PTP & TSC are synced else return boolean false @@ -29,7 +23,6 @@ enum { * @get_ptp_ts_ns_fn: function pointer to get PTP timestamp in nanoseconds, This API can be called in isr context */ struct chip_ops { - uint32_t soc_id; int32_t (*ptp_tsc_sync_cfg_fn)(struct soc_dev_data *soc_data); void (*ptp_tsc_synchronize_fn)(struct soc_dev_data *soc_data); bool (*ptp_tsc_get_is_locked_fn)(struct soc_dev_data *soc_data); diff --git a/drivers/nvpps/nvpps_t23x.c b/drivers/nvpps/nvpps_t23x.c index 68542fb3..e3f69595 100644 --- a/drivers/nvpps/nvpps_t23x.c +++ b/drivers/nvpps/nvpps_t23x.c @@ -267,7 +267,6 @@ fail: } const struct chip_ops tegra234_chip_ops = { - .soc_id = NV_SOC_T23X, .ptp_tsc_sync_cfg_fn = &nvpps_t23x_ptp_tsc_sync_config, .ptp_tsc_synchronize_fn = &nvpps_t23x_ptp_tsc_synchronize, .ptp_tsc_get_is_locked_fn = &nvpps_t23x_ptp_tsc_get_is_locked, diff --git a/drivers/nvpps/nvpps_t26x.c b/drivers/nvpps/nvpps_t26x.c index 3ce4d267..6654c487 100644 --- a/drivers/nvpps/nvpps_t26x.c +++ b/drivers/nvpps/nvpps_t26x.c @@ -309,7 +309,6 @@ fail: /* Define the tegra264_chip_data structure */ const struct chip_ops tegra264_chip_ops = { - .soc_id = NV_SOC_T26X, .ptp_tsc_sync_cfg_fn = &nvpps_t26x_ptp_tsc_sync_config, .ptp_tsc_synchronize_fn = &nvpps_t26x_ptp_tsc_synchronize, .ptp_tsc_get_is_locked_fn = &nvpps_t26x_ptp_tsc_get_is_locked,