thermal/of: Use thermal trips stored in the thermal zone
authorDaniel Lezcano <daniel.lezcano@linexp.org>
Fri, 22 Jul 2022 20:00:06 +0000 (22:00 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 28 Jul 2022 15:29:56 +0000 (17:29 +0200)
commit14ccb5edd76e40259d8c1bd8f984cfc9016e1633
tree5a2a4c7d21682ea3727deddcd07e495f01d63ffd
parentfae11de507f0e420ba3733729317559e7cea6274
thermal/of: Use thermal trips stored in the thermal zone

Now that we have the thermal trip stored in the thermal zone in a
generic way, we can rely on them and remove one indirection we found
in the thermal_of code and do one more step forward the removal of the
duplicated structures.

Cc: Alexandre Bailon <abailon@baylibre.com>
Cc: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linexp.org>
Link: https://lore.kernel.org/r/20220722200007.1839356-10-daniel.lezcano@linexp.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/thermal_of.c