From: Bartosz Golaszewski Date: Mon, 12 Jan 2015 13:47:22 +0000 (+0100) Subject: hwmon: (ina2xx) use DIV_ROUND_CLOSEST() to avoid rounding errors X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~170^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b721fe2a3a92b896ba1b41e338471dfef672052a;p=pandora-kernel.git hwmon: (ina2xx) use DIV_ROUND_CLOSEST() to avoid rounding errors Use DIV_ROUND_CLOSEST() when dealing with the calibration values to make the calculations less error prone. Signed-off-by: Bartosz Golaszewski Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed