thermal/drivers/exynos: Stop using the threshold mechanism on Exynos 4210
authorMateusz Majewski <m.majewski2@samsung.com>
Fri, 1 Dec 2023 09:56:22 +0000 (10:56 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 2 Jan 2024 08:33:19 +0000 (09:33 +0100)
commitd7a5b431911c5d9da7fbff852433e6f99a4c6616
treeff6eac0f71267c80728d7df3d5ff09a20c22a03d
parent5d6976d01414f23af4b81d7f91cfd59839c8b1fe
thermal/drivers/exynos: Stop using the threshold mechanism on Exynos 4210

Exynos 4210 supports setting a base threshold value, which is added to
all trip points. This might be useful, but is not really necessary in
our usecase, so we always set it to 0 to simplify the code a bit.

Additionally, this change makes it so that we convert the value to the
calibrated one in a slightly different place. This is more correct
morally, though it does not make any change when single-point
calibration is being used (which is the case currently).

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-7-m.majewski2@samsung.com
drivers/thermal/samsung/exynos_tmu.c