]> git.ipfire.org Git - thirdparty/linux.git/commit
thermal: tegra: Introduce struct trip_temps for critical and hot trips
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 29 Jul 2024 16:02:22 +0000 (18:02 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 2 Aug 2024 11:48:03 +0000 (13:48 +0200)
commit289a54f6115a95041bfddd7363676e8bf4d1803e
tree8710e3f4ee9dcbc9a613512034a12a7b18d68f69
parentab446887ea7753e712cd3b6f54e5786bbb7b1e33
thermal: tegra: Introduce struct trip_temps for critical and hot trips

Introduce a helper structure, struct trip_temps, for storing the
temperatures of the critical and hot trip points.

This helps to make the code in tegra_tsensor_get_hw_channel_trips()
somewhat cleaner and will be useful subsequently in eliminating
iteration over trip indices from the driver.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://patch.msgid.link/9333090.CDJkKcVGEf@rjwysocki.net
drivers/thermal/tegra/tegra30-tsensor.c