hwmon: (max6650) Improve error handling in max6650_update_device
authorGuenter Roeck <linux@roeck-us.net>
Fri, 7 Jun 2019 17:23:24 +0000 (10:23 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 24 Jun 2019 01:33:01 +0000 (18:33 -0700)
commit0c4a71d36566a783d795025260a7648447453966
tree66cced6f72eac19d6c5e54fd39b59218fdf93f90
parent62dbe50591769f6135b3c8a93c8168b3d177a823
hwmon: (max6650) Improve error handling in max6650_update_device

Pass errors from i2c_smbus_read_byte_data() back to the caller of
max6650_update_device().

Cc: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/max6650.c