diff mbox series

[v1,2/2] thermal: intel: intel_soc_dts_iosf: Drop redundant symbol definition

Message ID 2302928.ElGaqSPkdT@kreacher
State New
Headers show
Series thermal: intel: intel_soc_dts_iosf: Two cleanups | expand

Commit Message

Rafael J. Wysocki Aug. 9, 2023, 8:28 p.m. UTC
From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

SOC_MAX_DTS_SENSORS is already defined in intel_soc_dts_iosf.h which is
included in intel_soc_dts_iosf.c, so it does not need to be defined in
the latter again.

Drop the redundant definition of that symbol from intel_soc_dts_iosf.c.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
 drivers/thermal/intel/intel_soc_dts_iosf.c |    3 ---
 1 file changed, 3 deletions(-)

Comments

Srinivas Pandruvada Aug. 10, 2023, 4:53 p.m. UTC | #1
On Wed, 2023-08-09 at 22:28 +0200, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> 
> SOC_MAX_DTS_SENSORS is already defined in intel_soc_dts_iosf.h which
> is
> included in intel_soc_dts_iosf.c, so it does not need to be defined
> in
> the latter again.
> 
> Drop the redundant definition of that symbol from
> intel_soc_dts_iosf.c.
> 
> No intentional functional impact.
> 
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Srinivas Pandruvada<srinivas.pandruvada@linux.intel.com>

> ---
>  drivers/thermal/intel/intel_soc_dts_iosf.c |    3 ---
>  1 file changed, 3 deletions(-)
> 
> Index: linux-pm/drivers/thermal/intel/intel_soc_dts_iosf.c
> ===================================================================
> --- linux-pm.orig/drivers/thermal/intel/intel_soc_dts_iosf.c
> +++ linux-pm/drivers/thermal/intel/intel_soc_dts_iosf.c
> @@ -40,9 +40,6 @@
>  /* Mask for two trips in status bits */
>  #define SOC_DTS_TRIP_MASK              0x03
>  
> -/* DTS0 and DTS 1 */
> -#define SOC_MAX_DTS_SENSORS            2
> -
>  static int sys_get_trip_temp(struct thermal_zone_device *tzd, int
> trip,
>                              int *temp)
>  {
> 
> 
>
diff mbox series

Patch

Index: linux-pm/drivers/thermal/intel/intel_soc_dts_iosf.c
===================================================================
--- linux-pm.orig/drivers/thermal/intel/intel_soc_dts_iosf.c
+++ linux-pm/drivers/thermal/intel/intel_soc_dts_iosf.c
@@ -40,9 +40,6 @@ 
 /* Mask for two trips in status bits */
 #define SOC_DTS_TRIP_MASK		0x03
 
-/* DTS0 and DTS 1 */
-#define SOC_MAX_DTS_SENSORS		2
-
 static int sys_get_trip_temp(struct thermal_zone_device *tzd, int trip,
 			     int *temp)
 {