diff options
author | Guenter Roeck <linux@roeck-us.net> | 2014-07-17 04:40:31 +0400 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2014-07-17 08:18:47 +0400 |
commit | de12d6f4b10b21854441f5242dcb29ea96181e58 (patch) | |
tree | bd197e8e568310bb71c6469f7d9242ed8b056df1 /Documentation/serial | |
parent | 6b00f440dd678d786389a7100a2e03fe44478431 (diff) | |
download | linux-de12d6f4b10b21854441f5242dcb29ea96181e58.tar.xz |
hwmon: (adt7470) Fix writes to temperature limit registers
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>
Diffstat (limited to 'Documentation/serial')
0 files changed, 0 insertions, 0 deletions