hwmon: (ina2xx) replace ina226_avg_bits() with find_closest()
authorBartosz Golaszewski <[email protected]>
Thu, 16 Apr 2015 19:43:34 +0000 (12:43 -0700)
committerLinus Torvalds <[email protected]>
Fri, 17 Apr 2015 13:03:54 +0000 (09:03 -0400)
commitd38df34e3f0ea1e65c7db5d33d132dc14da0009a
treecaa8aef32e6160ea46bb99f9ecec04bd51bd97ae
parentf2027543b9cb47e1853d8c34fe931e2fcee5cb65
hwmon: (ina2xx) replace ina226_avg_bits() with find_closest()

Use find_closest() to locate the closest average in ina226_avg_tab.

Signed-off-by: Bartosz Golaszewski <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: Steven Rostedt <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/hwmon/ina2xx.c