]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (scpi-hwmon) shows the negative temperature properly
authorRiwen Lu <luriwen@kylinos.cn>
Fri, 4 Jun 2021 03:09:59 +0000 (11:09 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 9 Jun 2021 18:51:30 +0000 (11:51 -0700)
commit39d5d9e5e62cfe3a549b13a154667a3b5ca63e64
treeea796e8b5df1f514e144784e9820bc9d26f8111b
parent35f7c69b544147d6c85b42d446ec04522a24c22f
hwmon: (scpi-hwmon) shows the negative temperature properly

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: Riwen Lu <luriwen@kylinos.cn>
Tested-by: Xin Chen <chenxin@kylinos.cn>
Link: https://lore.kernel.org/r/20210604030959.736379-1-luriwen@kylinos.cn
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/scpi-hwmon.c