thermal: intel: intel_soc_dts_iosf: Always use 2 trips
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Aug 2023 20:27:18 +0000 (22:27 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 Aug 2023 19:02:17 +0000 (21:02 +0200)
commitb429b6ffbdc976d22bdf0b5ba9183c8466209cba
treef72a67076cf0d05899d30fa54038dd2b8afd15bd
parente49c8ed8e0ec29d3ae8cb6342cad147d9738bfbe
thermal: intel: intel_soc_dts_iosf: Always use 2 trips

Both the existing callers of intel_soc_dts_iosf_init() pass 2 as the trip
count argument, so it can be replaced with SOC_MAX_DTS_TRIPS everywhere in
the code and the trip_count argument of that function can be dropped.

This also allows the trip_count field to be dropped from struct
intel_soc_dts_sensor_entry, as it is always equal to 2, and some
related code can be simplified.

Make changes accordingly.

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/int340x_thermal/processor_thermal_device_pci_legacy.c
drivers/thermal/intel/intel_soc_dts_iosf.c
drivers/thermal/intel/intel_soc_dts_iosf.h
drivers/thermal/intel/intel_soc_dts_thermal.c