ACPI: thermal: Use thermal_zone_for_each_trip() for updating trips
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 3 Oct 2023 13:24:12 +0000 (15:24 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 5 Oct 2023 11:32:35 +0000 (13:32 +0200)
commitb251ab28caeb5a4a63d832dcd53d29ad2dd5318f
tree73b1ae138b421ed00a555e9e57d117995d2d5343
parent4f9cf91e4102fe77ef3393febab72612b594172f
ACPI: thermal: Use thermal_zone_for_each_trip() for updating trips

Rearrange the code handling notifications from the platform firmware
regarding trip point updates to carry out one loop over trip points
instead of two of them by using thermal_zone_for_each_trip() for that,
which is more straightforward than using a combination of
thermal_zone_device_exec() and for_each_thermal_trip(), each with its
own callback function.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/acpi/thermal.c