]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (w83795) use find_closest_descending() in pwm_freq_to_reg()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 16 Apr 2015 19:43:39 +0000 (12:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Apr 2015 13:03:55 +0000 (09:03 -0400)
commite7a3c271209b6a40535efc949c4b070efb42e289
tree3f5f68cd7ecb9b1b1d8e47c62681f2c5c30b277b
parent34bc8f7f987828dc9684af5852d1f08e2b2a0d2c
hwmon: (w83795) use find_closest_descending() in pwm_freq_to_reg()

Replace the loop iterating over pwm_freq_cksel0 with a call to
find_closest_descending().

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/w83795.c