hwmon: (lm85) use find_closest() in x_TO_REG() functions
authorBartosz Golaszewski <[email protected]>
Thu, 16 Apr 2015 19:43:36 +0000 (12:43 -0700)
committerLinus Torvalds <[email protected]>
Fri, 17 Apr 2015 13:03:55 +0000 (09:03 -0400)
commit0f3721c51ec5643e00f07dd3bbc5712c72fc62b2
tree957cbf930cbde02454cb34afc46293f843a1e354
parentd38df34e3f0ea1e65c7db5d33d132dc14da0009a
hwmon: (lm85) use find_closest() in x_TO_REG() functions

Replace RANGE_TO_REG() and FREQ_TO_REG() implementations with
calls to find_closest().

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