Home
last modified time | relevance | path

Searched hist:de12d6f4b10b21854441f5242dcb29ea96181e58 (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/hwmon/
H A Dadt7470.cdiff de12d6f4b10b21854441f5242dcb29ea96181e58 Thu Jul 17 02:40:31 CEST 2014 Guenter Roeck <linux@roeck-us.net> 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>