thermal: helpers: Use for_each_trip() in __thermal_zone_get_temp()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 4 Dec 2023 19:46:35 +0000 (20:46 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Dec 2023 11:33:43 +0000 (12:33 +0100)
commit2e3e7dad4bf5ad869e8dc9fa09151913154318b0
tree40c3c6281fa8bfa7a076febab453f41d93097628
parent0c0c4740c9d2668a234f7743ba50d54acab0821c
thermal: helpers: Use for_each_trip() in __thermal_zone_get_temp()

Make __thermal_zone_get_temp() use for_each_trip() instead of an open-
coded loop over trip indices.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
drivers/thermal/thermal_helpers.c