]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (ina2xx) replace ina226_avg_bits() with find_closest()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 16 Apr 2015 19:43:34 +0000 (12:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Apr 2015 13:03:54 +0000 (09:03 -0400)
commite6ddec8ec73f0d774f6851fba337875cc0efa71d
treecaa8aef32e6160ea46bb99f9ecec04bd51bd97ae
parent6e0a3b6dd2805444e842c8e7d9de7e67ff6b82be
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 <bgolaszewski@baylibre.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/hwmon/ina2xx.c