From: Guenter Roeck Date: Wed, 19 Dec 2012 02:16:08 +0000 (-0800) Subject: hwmon: (emc6w201) Fix DIV_ROUND_CLOSEST problem with unsigned divisors X-Git-Tag: v3.8-rc2~17^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86266ca0e23b2b8e7e38edda1675cd085a9abc14;p=pandora-kernel.git 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 Acked-by: Jean Delvare --- Reading git-diff-tree failed