]> 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)
commit5b0d1c036ea867de91e496a7473f346dec9665ac
tree2540ca650a1368e51f40914d3df8f0d156453224
parent1190768fe96734a71782aae70935c74383899cc3
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: 1e97f2b9bd9e ("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