hwmon: (adt7475) Make adt7475_read_word() return errors
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 14 Aug 2018 10:07:47 +0000 (13:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Oct 2018 00:01:52 +0000 (17:01 -0700)
commit8ccd9e428f392d7f06e17e620f3d150e7bb42a0f
tree00fe8f432cb7a42cf3156dab650e458706db723f
parentfc63de901ec7af748a53f8279428f5804a60a8ff
hwmon: (adt7475) Make adt7475_read_word() return errors

[ Upstream commit f196dec6d50abb2e65fb54a0621b2f1b4d922995 ]

The adt7475_read_word() function was meant to return negative error
codes on failure.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Tokunori Ikegami <ikegami@allied-telesis.co.jp>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/adt7475.c