Guenter Roeck de12d6f4b1 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>
2014-07-16 21:18:47 -07:00
..
2013-10-18 09:12:02 -07:00
2013-10-18 09:12:02 -07:00
2014-01-29 20:40:08 +01:00
2013-10-13 16:16:25 -07:00
2013-08-11 22:10:39 -07:00
2014-01-29 20:40:08 +01:00
2013-08-11 22:10:39 -07:00
2014-01-29 20:40:08 +01:00
2014-01-29 20:40:08 +01:00
2013-08-27 08:28:01 -07:00
2013-09-11 13:01:32 -07:00
2014-04-04 18:01:35 +02:00
2013-03-18 21:19:49 +01:00
2014-01-29 20:40:08 +01:00
2014-06-12 08:36:30 -07:00
2014-01-29 20:40:08 +01:00
2013-08-11 22:10:39 -07:00
2014-01-29 20:40:08 +01:00
2012-11-28 11:49:40 -08:00
2012-11-28 11:49:40 -08:00
2012-11-28 11:50:34 -08:00
2014-01-29 20:40:08 +01:00
2013-10-18 09:12:02 -07:00
2014-01-29 20:40:08 +01:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00