thermal/drivers/bcm2711: Don't clamp temperature at zero
stable inclusion from stable-v5.10.121 commit 83603802954068ccd1b8a3f2ccbbaf5e0862acb0 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I5L6CQ Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=83603802954068ccd1b8a3f2ccbbaf5e0862acb0 -------------------------------- [ Upstream commit 106e0121 ] 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: 59b78135 ("thermal: Add BCM2711 thermal driver") Signed-off-by: NStefan Wahren <stefan.wahren@i2se.com> Acked-by: NFlorian Fainelli <f.fainelli@gmail.com> Link: https://lore.kernel.org/r/20220412195423.104511-1-stefan.wahren@i2se.comSigned-off-by: NDaniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
Showing
想要评论请 注册 或 登录