hwmon: (ina2xx) use DIV_ROUND_CLOSEST() to avoid rounding errors
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 12 Jan 2015 13:47:22 +0000 (14:47 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 26 Jan 2015 05:23:59 +0000 (21:23 -0800)
Use DIV_ROUND_CLOSEST() when dealing with the calibration values to make the
calculations less error prone.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

No differences found