Commit e22f971f authored by Riwen Lu's avatar Riwen Lu Committed by Zheng Zengkai
Browse files

hwmon: (scpi-hwmon) shows the negative temperature properly



stable inclusion
from stable-5.10.46
commit a87abba03a7a9a4aa282d6b5fe796ffac431255a
bugzilla: 168323
CVE: NA

--------------------------------

[ Upstream commit 78d13552 ]

The scpi hwmon shows the sub-zero temperature in an unsigned integer,
which would confuse the users when the machine works in low temperature
environment. This shows the sub-zero temperature in an signed value and
users can get it properly from sensors.

Signed-off-by: default avatarRiwen Lu <luriwen@kylinos.cn>
Tested-by: default avatarXin Chen <chenxin@kylinos.cn>
Link: https://lore.kernel.org/r/20210604030959.736379-1-luriwen@kylinos.cn


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatarWeilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent ffbc36af
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment