diff options
| author | Sachin Kamat <[email protected]> | 2013-09-11 04:19:52 +0000 |
|---|---|---|
| committer | Guenter Roeck <[email protected]> | 2013-09-11 20:01:41 +0000 |
| commit | 010a166a5202f6297e196624a0671c4815032e38 (patch) | |
| tree | 6288f8a7c035ff17a3d8e465c65d00b505ff6134 /drivers/hwmon/tmp421.c | |
| parent | hwmon: (amc6821) Remove redundant break (diff) | |
| download | kernel-010a166a5202f6297e196624a0671c4815032e38.tar.gz kernel-010a166a5202f6297e196624a0671c4815032e38.zip | |
hwmon: (tmp421) Fix return value
Propagate return value obtained from i2c_smbus_read_byte_data()
instead of hardcoding.
Signed-off-by: Sachin Kamat <[email protected]>
Cc: Andre Prendel <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'drivers/hwmon/tmp421.c')
| -rw-r--r-- | drivers/hwmon/tmp421.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/tmp421.c b/drivers/hwmon/tmp421.c index 964c1d688274..ae26b06fa819 100644 --- a/drivers/hwmon/tmp421.c +++ b/drivers/hwmon/tmp421.c @@ -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; |
