Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 010a166a authored by Sachin Kamat's avatar Sachin Kamat Committed by Guenter Roeck
Browse files

hwmon: (tmp421) Fix return value



Propagate return value obtained from i2c_smbus_read_byte_data()
instead of hardcoding.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Cc: Andre Prendel <andre.prendel@gmx.de>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 17a52100
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -210,7 +210,7 @@ static int tmp421_init_client(struct i2c_client *client)
	if (config < 0) {
		dev_err(&client->dev,
			"Could not read configuration register (%d)\n", config);
		return -ENODEV;
		return config;
	}

	config_orig = config;