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

Do not overwrite errors reported from i2c functions, and don't ignore
any errors.

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