hwmon: (adt7462) Use error value returned from find_trange_value()
authorGuenter Roeck <linux@roeck-us.net>
Fri, 13 Sep 2013 17:38:09 +0000 (10:38 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 13 Oct 2013 23:16:26 +0000 (16:16 -0700)
commitbb34c0da646530425d9ae0e6e6229e641469da4c
tree8a14b118dcb684c766bd3d61482f93dfbf150560
parentaf78fdf4a61827bed7f0fcbba8cc9ae393a3ad82
hwmon: (adt7462) Use error value returned from find_trange_value()

find_trange_value() returns -ENODEV in case of errors, only to have it
ignored and replaced with -EINVAL. Make it return -EINVAL and use it.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/adt7462.c