hwmon: (lm95234) Use find_closest to find matching update interval
Use find_closest() instead of manually coding it to find best update interval. Since find_closest() uses rounding to find the best match, the resulting update interval will now reflect the update interval that is closest to the requested value, not the value that is lower or equal to the requested value. Reviewed-by:Tzung-Bi Shih <tzungbi@kernel.org> Signed-off-by:
Guenter Roeck <linux@roeck-us.net>
Showing
Please register or sign in to comment