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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:23:00 +0000 (10:23 +0200)
commitc4e1280abead1552e1764684079a43e222ccd163
tree6c9c4995fa60e759da7f66dcbffb1e86e2171e25
parentd50d1c703bbd8930d11e5bc01e2cc3c8dcda8f4b
thermal/drivers/bcm2711: Don't clamp temperature at zero

[ Upstream commit 106e0121e243de4da7d634338089a68a8da2abe9 ]

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: 59b781352dc4 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/thermal/broadcom/bcm2711_thermal.c