summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/sis5595.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2012-12-19 03:16:08 +0100
committerGuenter Roeck <linux@roeck-us.net>2012-12-22 11:16:40 +0100
commit86266ca0e23b2b8e7e38edda1675cd085a9abc14 (patch)
tree409090b0c801c517f9a936a9b15376a82a9de696 /drivers/hwmon/sis5595.c
parenthwmon: (lm73} Detect and report i2c bus errors (diff)
downloadlinux-86266ca0e23b2b8e7e38edda1675cd085a9abc14.tar.xz
linux-86266ca0e23b2b8e7e38edda1675cd085a9abc14.zip
hwmon: (emc6w201) Fix DIV_ROUND_CLOSEST problem with unsigned divisors
Result of DIV_ROUND_CLOSEST is undefined for negative dividends if the divisor variable type is unsigned. Fix by declaring divisor as signed variable. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Acked-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/hwmon/sis5595.c')
0 files changed, 0 insertions, 0 deletions