Files
linux/drivers
Guenter Roeck 69d15f41f7 hwmon: (smsc47m192) Fix temperature limit and vrm write operations
commit 043572d544 upstream.

Temperature limit clamps are applied after converting the temperature
from milli-degrees C to degrees C, so either the clamp limit needs
to be specified in degrees C, not milli-degrees C, or clamping must
happen before converting to degrees C. Use the latter method to avoid
overflows.

vrm is an u8, so the written value needs to be limited to [0, 255].

Cc: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-31 12:53:51 -07:00
..
2013-12-08 07:29:25 -08:00
2014-03-06 21:30:14 -08:00
2014-07-28 08:00:07 -07:00
2014-06-07 13:25:39 -07:00
2014-07-31 12:53:50 -07:00
2014-04-14 06:42:18 -07:00
2014-07-06 18:54:15 -07:00
2014-07-28 08:00:06 -07:00
2014-02-22 12:41:27 -08:00
2014-02-20 11:06:11 -08:00
2014-04-03 12:01:05 -07:00