]> git.baikalelectronics.ru Git - kernel.git/commit
thermal/drivers/bcm2711: Don't clamp temperature at zero
authorStefan Wahren <stefan.wahren@i2se.com>
Tue, 12 Apr 2022 19:54:23 +0000 (21:54 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 19 May 2022 10:11:51 +0000 (12:11 +0200)
commitb61989243f08b5e6d0c46ec869e3808522730cb4
treec7d0ff9273205a0f063b379e89c395633ae9e301
parentd38ef9b94bb3c02711c976f33b8e4b9fb0736121
thermal/drivers/bcm2711: Don't clamp temperature at zero

The thermal sensor on BCM2711 is capable of negative temperatures, so don't
clamp the measurements at zero. Since this was the only use for variable t,
drop it.

This change based on a patch by Dom Cobley, who also tested the fix.

Fixes: f63c807f2e9e ("thermal: Add BCM2711 thermal driver")
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20220412195423.104511-1-stefan.wahren@i2se.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/broadcom/bcm2711_thermal.c