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>
Mon, 28 Feb 2022 01:03:18 +0000 (17:03 -0800)
commit339f8a998f58e8693f73429e7597f2ffc9b93ec5
tree4b3982dcd0cf2d86108b7fb3c6b10f7dd9f789ba
parent88846ff7422089f576e29b68153034babbc68ce6
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