mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 01:43:18 +00:00
It is generally inefficient to iterate over trip indices and call thermal_zone_get_trip() every time to get the struct thermal_trip corresponding to the given trip index, so modify the Tegra thermal drivers to use thermal_zone_for_each_trip() for walking trips. Signed-off-by: Rafael J. Wysocki <[email protected]> Reviewed-by: Lukasz Luba <[email protected]> Link: https://patch.msgid.link/[email protected] [ rjw: Dropped an unused local variable ] Signed-off-by: Rafael J. Wysocki <[email protected]>