thermal: intel: intel_soc_dts_iosf: Untangle update_trip_temp()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 Aug 2023 19:11:26 +0000 (21:11 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 11 Aug 2023 16:44:44 +0000 (18:44 +0200)
commit0b28ba273ef3bdf26c933cbe2a624deb35c82aac
tree1a4ef4fd800ffbc7dc4266ffcabfde73d8eb53e3
parent4f16443596f4d3dcf0474f8c753219bd6b9470f2
thermal: intel: intel_soc_dts_iosf: Untangle update_trip_temp()

Function update_trip_temp() is currently used for the initialization
of trip points as well as for changing trip point temperatures in
sys_set_trip_temp().

This is quite confusing and passing the value of dts->trip_types[trip]
to it so that it can store that value in the same memory location is
not particularly useful, because it only is necessary to set the
trip point type once, at the initialization time.

For this reason, drop the last argument from update_trip_temp() and
introduce configure_trip() calling the former internally for the
initial configuration of trip points.

Modify the majority of update_trip_temp() callers to use
configure_trip() instead of it.

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