Skip to content
Commit 86266ca0 authored by Guenter Roeck's avatar Guenter Roeck
Browse files

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: default avatarGuenter Roeck <linux@roeck-us.net>
Acked-by: default avatarJean Delvare <khali@linux-fr.org>
parent 0602934f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment