thermal: trip: Use for_each_trip() in __thermal_zone_set_trips()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 4 Dec 2023 19:41:30 +0000 (20:41 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Dec 2023 11:33:43 +0000 (12:33 +0100)
commit0c0c4740c9d2668a234f7743ba50d54acab0821c
tree7654eb05dd5c81f491bca164add68ee531f6e972
parentb6515a88baf4628e93fcc39c2b81fc1740eb3c3f
thermal: trip: Use for_each_trip() in __thermal_zone_set_trips()

Make __thermal_zone_set_trips() 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_trip.c