summaryrefslogtreecommitdiff
path: root/crypto/cts.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2014-07-16 17:40:31 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-28 08:00:03 -0700
commit0979b7169679cc91edcadd98ffbe389400bbc088 (patch)
tree0673e5604c8f0d08b40dd689a6979210a4bc8f3c /crypto/cts.c
parent4c6d5fb84ff7ad51e7bf91dbe60ed6fe670f252d (diff)
downloadlinux-3.10-0979b7169679cc91edcadd98ffbe389400bbc088.tar.gz
linux-3.10-0979b7169679cc91edcadd98ffbe389400bbc088.tar.bz2
linux-3.10-0979b7169679cc91edcadd98ffbe389400bbc088.zip
hwmon: (adt7470) Fix writes to temperature limit registers
commit de12d6f4b10b21854441f5242dcb29ea96181e58 upstream. 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> Reviewed-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/cts.c')
0 files changed, 0 insertions, 0 deletions