ACPI: thermal: Use trip point table to register thermal zones
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Aug 2023 11:07:23 +0000 (13:07 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 17 Aug 2023 09:25:22 +0000 (11:25 +0200)
commitec23c1c462ded022ec0c3ed3fa92af6ca25b9599
tree5e074d6afef246558938668b614042550df34694
parent96b8b4365db44af0a94b91a805cd5beed45d24fa
ACPI: thermal: Use trip point table to register thermal zones

Make the ACPI thermal driver use thermal_zone_device_register_with_trips()
to register its thermal zones.

For this purpose, make it create a trip point table that will be passed to
thermal_zone_device_register_with_trips() as an argument.

Also use the thermal_zone_update_trip_temp() helper introduced
previously to update temperatures of the passive and active trip
points after a trip points change notification from the platform
firmware.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/thermal.c