hwmon: (asus-ec-sensors) read sensors as signed ints
authorEugene Shalygin <eugene.shalygin@gmail.com>
Fri, 4 Feb 2022 16:30:45 +0000 (17:30 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 5 Feb 2022 18:01:35 +0000 (10:01 -0800)
commit2d894d63ecb9cef943af99c605fa87c655c2714c
tree87946c5a462372d4a4d0daf09a4276720289e32b
parent57b5c2c9bac471203e2231a866b0524c5a318fce
hwmon: (asus-ec-sensors) read sensors as signed ints

Temperature sensor readings are signed, which is hinted by their blank
value (oxd8, 216 as unsigned and -40 as signed). T_Sensor, Crosshair
VIII Hero, and a freezer were used to confirm that.

Here we read fan sensors as signed too, because with their typical
values and 2-byte width, I can't tell a difference between signed and
unsigned, as I don't have a high speed chipset fan.

Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com>
Link: https://lore.kernel.org/r/20220204163045.576903-1-eugene.shalygin@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/asus-ec-sensors.c