]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc748bd88dc4ac2d332b2546e22dba21e2cb3efac
tree752cba707cf1ea3914a1da31ac4caa8152aa8eeb
parent78426c61c60045fd7113846a0280960338868cb5
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 9b502ec04a7b751e9c18b6f8618e49e6c2f0526e.)

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