projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17a5210
)
hwmon: (tmp421) Fix return value
author
Sachin Kamat
<sachin.kamat@linaro.org>
Wed, 11 Sep 2013 04:19:52 +0000
(09:49 +0530)
committer
Guenter Roeck
<linux@roeck-us.net>
Wed, 11 Sep 2013 20:01:41 +0000
(13:01 -0700)
Propagate return value obtained from i2c_smbus_read_byte_data()
instead of hardcoding.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Andre Prendel <andre.prendel@gmx.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/tmp421.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hwmon/tmp421.c
b/drivers/hwmon/tmp421.c
index 964c1d68827400ec9ac6d5ce515418c74294d3aa..ae26b06fa8190dd478456d12a637889c61bde0fe 100644
(file)
--- 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;