git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b00f44
)
hwmon: (adt7470) Fix writes to temperature limit registers
author
Guenter Roeck
<linux@roeck-us.net>
Thu, 17 Jul 2014 00:40:31 +0000
(17:40 -0700)
committer
Guenter Roeck
<linux@roeck-us.net>
Thu, 17 Jul 2014 04:18:47 +0000
(21:18 -0700)
Temperature limit registers are signed. Limits therefore need
to be clamped to (-128, 127) degrees C and not to (0, 255)
degrees C.
Without this fix, writing a limit of 128 degrees C sets the
actual limit to -128 degrees C.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Cc: stable@vger.kernel.org
Reviewed-by: Axel Lin <axel.lin@ingics.com>
drivers/hwmon/adt7470.c
patch
|
blob
|
history
diff --cc
drivers/hwmon/adt7470.c
Simple merge