hwmon: (ltc2990) Fix incorrect conversion of negative temperatures
authorTom Levens <tom.levens@cern.ch>
Mon, 3 Jul 2017 04:28:58 +0000 (06:28 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 21 May 2018 14:52:00 +0000 (07:52 -0700)
commita6282d170339f86e05fd24bdf3104ca644a4b3a4
tree2540ca650a1368e51f40914d3df8f0d156453224
parent59df4f4e8e0b9a0abb14ad5128d36d844c3e2689
hwmon: (ltc2990) Fix incorrect conversion of negative temperatures

Fix incorrect conversion of negative temperatures by using
sign_extend32() instead of a home-grown conversion function.

Fixes: df922703574e ("hwmon: Add LTC2990 sensor driver")
Signed-off-by: Tom Levens <tom.levens@cern.ch>
[groeck: Updated subject and description]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ltc2990.c