hwmon: (amc6821) sign extension temperature
authorJared Bents <jared.bents@rockwellcollins.com>
Sat, 19 Nov 2016 04:20:38 +0000 (22:20 -0600)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 2 Dec 2016 21:28:04 +0000 (13:28 -0800)
commit4538bfbf2d9f1fc48c07ac0cc0ee58716fe7fe96
tree56dc2bf52fe69a3e7df4fbcbea13855ed73d67e1
parent13edb767aa609b6efb7c0c2b57fbd72a6ded0eed
hwmon: (amc6821) sign extension temperature

Converts the unsigned temperature values from the i2c read
to be sign extended as defined in the datasheet so that
negative temperatures are properly read.

Fixes: 28e6274d8fa67 ("hwmon: (amc6821) Avoid forward declaration")
Signed-off-by: Jared Bents <jared.bents@rockwellcollins.com>
Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com>
[groeck: Dropped unnecessary continuation line]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/amc6821.c