thermal: intel: intel_pch: Use generic trip points
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 23 Jan 2023 18:40:33 +0000 (19:40 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 24 Jan 2023 20:13:42 +0000 (21:13 +0100)
commitfee19c692160ae83f50e7b561076e4bd4cceb830
treed5a6ab6b1620b7584e64d614bec278cea421535a
parent7a0e39748861272e6f4b088d5a7e7ffa53c4d5eb
thermal: intel: intel_pch: Use generic trip points

The thermal framework gives the possibility to register the trip
points along with the thermal zone.  When that is done, no get_trip_*
callbacks are needed and they can be removed.

Convert the existing callbacks content logic into generic trip points
initialization code and register them along with the thermal zone.

In order to consolidate the code, use an ACPI trip library function
to populate a generic trip point.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Zhang Rui <rui.zhang@intel.com>
[ rjw: Subject and changelog edits, rebase ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
drivers/thermal/intel/Kconfig
drivers/thermal/intel/intel_pch_thermal.c