thermal: core: Rework and rename __for_each_thermal_trip()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 7 Aug 2023 18:11:07 +0000 (20:11 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 17 Aug 2023 09:25:22 +0000 (11:25 +0200)
commit96b8b4365db44af0a94b91a805cd5beed45d24fa
tree42bb2cf723090865a909389481df429d6216928f
parent68b77785a1db293582558bc1460b19e8355b8f7a
thermal: core: Rework and rename __for_each_thermal_trip()

Rework the currently unused __for_each_thermal_trip() to pass original
pointers to struct thermal_trip objects to the callback, so it can be
used for updating trip data (e.g. temperatures), rename it to
for_each_thermal_trip() and make it available to modular drivers.

Suggested-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/thermal_core.h
drivers/thermal/thermal_trip.c
include/linux/thermal.h