commit | f1b9baa99bd98f83e8601e5cfd3bd28027a6f5a8 | [log] [tgz] |
---|---|---|
author | Guenter Roeck <linux@roeck-us.net> | Sat Dec 03 11:08:07 2016 -0800 |
committer | Guenter Roeck <linux@roeck-us.net> | Fri Dec 09 21:54:30 2016 -0800 |
tree | 9834fef469011d9f2c87bd8c2b0e8b3a38d06a7e | |
parent | 7cb53e28b03006fa655632fe07b27a862f3f5cb5 [diff] |
hwmon: (adm1026) Fix overflows seen when writing into limit attributes Fix overflows seen when writing large values into voltage limit, temperature limit, temperature offset, and DAC attributes. Overflows are seen due to unbound multiplications and additions. While at it, change the low temperature limit to -128 degrees C, since this is the minimum temperature accepted by the chip. Reviewed-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Guenter Roeck <linux@roeck-us.net>