Dan Carpenter 04258bdb60 hwmon: (adt7462) Fix an error return in ADT7462_REG_VOLT()
commit 44f2f882909fedfc3a56e4b90026910456019743 upstream.

This is only called from adt7462_update_device().  The caller expects it
to return zero on error.  I fixed a similar issue earlier in commit
a4bf06d58f21 ("hwmon: (adt7462) ADT7462_REG_VOLT_MAX() should return 0")
but I missed this one.

Fixes: c0b4e3ab0c76 ("adt7462: new hwmon driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Link: https://lore.kernel.org/r/20200303101608.kqjwfcazu2ylhi2a@kili.mountain
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-03-11 07:51:18 +01:00
..
2015-05-31 22:58:36 -07:00
2014-08-04 07:01:35 -07:00
2014-07-23 15:01:44 -07:00
2015-08-09 13:44:27 -07:00
2014-08-04 07:01:36 -07:00
2015-10-14 07:57:14 -07:00
2014-08-05 19:44:42 -07:00
2014-08-04 07:01:35 -07:00
2014-08-04 07:01:35 -07:00
2014-08-04 07:01:35 -07:00
2015-11-10 15:00:03 -08:00
2014-01-29 20:40:08 +01:00
2014-01-29 20:40:08 +01:00
2017-01-12 11:22:48 +01:00
2015-08-10 23:00:10 -07:00
2015-06-21 22:54:53 -07:00