hwmon: (ds620) Fix overflows seen when writing temperature limits
authorGuenter Roeck <linux@roeck-us.net>
Sun, 20 Nov 2016 18:37:39 +0000 (10:37 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 9 Dec 2016 14:09:34 +0000 (06:09 -0800)
commite36ce99ee0815d7919a7b589bfb66f3de50b6bc7
tree288bdd6a2ec0050ea208ef2558c66c92b5960d53
parent0fb620c4334eab14e85b7f66389e9061a225fb7e
hwmon: (ds620) Fix overflows seen when writing temperature limits

Module test reports:

temp1_max: Suspected overflow: [160000 vs. 0]
temp1_min: Suspected overflow: [160000 vs. 0]

This is seen because the values passed when writing temperature limits
are unbound.

Reviewed-by: Jean Delvare <jdelvare@suse.de>
Fixes: 6099469805c2 ("hwmon: Support for Dallas Semiconductor DS620")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ds620.c