Ji-Ze Hong (Peter Hong) 4aaaaf0f27 hwmon: (f71882fg) Fix negative temperature
All temperature of Fintek superio hwmonitor that using 1-byte reg will use
2's complement.

In show_temp()
	temp = data->temp[nr] * 1000;

When data->temp[nr] read as 255, it indicate -1C, but this code will report
255C to userspace. It'll be ok when change to:
	temp = ((s8)data->temp[nr]) * 1000;

Signed-off-by: Ji-Ze Hong (Peter Hong) <hpeter+linux_kernel@gmail.com>
Link: https://lore.kernel.org/r/20220418090706.6339-1-hpeter+linux_kernel@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2022-04-18 08:15:07 -07:00
..
2022-02-09 08:04:44 +01:00
2021-04-20 06:50:14 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:41 -07:00
2020-09-23 09:42:39 -07:00
2022-02-27 17:03:19 -08:00
2020-09-23 09:42:40 -07:00
2021-06-17 04:21:44 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2019-11-06 14:37:19 -08:00
2019-11-06 14:37:19 -08:00
2020-09-23 09:42:39 -07:00
2021-04-20 06:50:14 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00
2020-09-23 09:42:39 -07:00