Re: [PATCH v2 3/4] hwmon: (lm85) replace x_TO_REG() functions with find_closest()

2015-03-13 Thread Rasmus Villemoes
On Tue, Mar 10 2015, Bartosz Golaszewski wrote: > Replace RANGE_TO_REG() and FREQ_TO_REG() functions with calls > to find_closest(). > I think the other functions you've replaced only had a single caller, but RANGE_TO_REG is called in two places. It's not a huge function and 2 is not a big numbe

[PATCH v2 3/4] hwmon: (lm85) replace x_TO_REG() functions with find_closest()

2015-03-10 Thread Bartosz Golaszewski
Replace RANGE_TO_REG() and FREQ_TO_REG() functions with calls to find_closest(). Signed-off-by: Bartosz Golaszewski --- drivers/hwmon/lm85.c | 43 --- 1 file changed, 12 insertions(+), 31 deletions(-) diff --git a/drivers/hwmon/lm85.c b/drivers/hwmon/lm85