]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit805298944b09b3be5d43e80f88c43ff9600a8a49
tree2540ca650a1368e51f40914d3df8f0d156453224
parent6ec0d884507b68bb6cb0a2db801306a4078ccc46
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: a741b5ac8d8d ("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