hwmon: (w83627ehf) Fix negative 8-bit temperature values
authorJean Delvare <khali@linux-fr.org>
Thu, 20 Oct 2011 07:06:45 +0000 (03:06 -0400)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Thu, 20 Oct 2011 14:17:08 +0000 (07:17 -0700)
commit133d324d82e144588939ad25b732b5b6c33b03d9
tree752cba707cf1ea3914a1da31ac4caa8152aa8eeb
parent899e3ee404961a90b828ad527573aaaac39f0ab1
hwmon: (w83627ehf) Fix negative 8-bit temperature values

Since 8-bit temperature values are now handled in 16-bit struct
members, values have to be cast to s8 for negative temperatures to be
properly handled. This is broken since kernel version 2.6.39
(commit bce26c58df86599c9570cee83eac58bdaae760e4.)

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Guenter Roeck <guenter.roeck@ericsson.com>
Cc: stable@kernel.org # 2.6.39+
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/w83627ehf.c