thermal/drivers/exynos: Split initialization of TMU and the thermal zone
authorMateusz Majewski <m.majewski2@samsung.com>
Fri, 1 Dec 2023 09:56:23 +0000 (10:56 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 2 Jan 2024 08:33:19 +0000 (09:33 +0100)
commitb72ba67baec1d8ff67edc6e70c371ab6b2f7d31c
treefb4d152571ec8d90781b9ddc097ceba0b3a05bde
parentd7a5b431911c5d9da7fbff852433e6f99a4c6616
thermal/drivers/exynos: Split initialization of TMU and the thermal zone

This will be needed in the future, as the thermal zone subsystem might
call our callbacks right after devm_thermal_of_zone_register. Currently
we just make get_temp return EAGAIN in such case, but this will not be
possible with state-modifying callbacks, for instance set_trips.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Mateusz Majewski <m.majewski2@samsung.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20231201095625.301884-8-m.majewski2@samsung.com
drivers/thermal/samsung/exynos_tmu.c