projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38dbfb5
)
regulator: lp3971: Do not hardcode return value
author
Sachin Kamat
<sachin.kamat@linaro.org>
Tue, 18 Feb 2014 10:41:03 +0000
(16:11 +0530)
committer
Mark Brown
<broonie@linaro.org>
Wed, 19 Feb 2014 16:28:12 +0000
(
01:28
+0900)
Propagate the error value returned by the function instead.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/lp3971.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/lp3971.c
b/drivers/regulator/lp3971.c
index 3b1102b75071f9d9f73fa0b34db63e43f9784614..66fd2330dca043a2627c8443f090ba5822f5de14 100644
(file)
--- a/
drivers/regulator/lp3971.c
+++ b/
drivers/regulator/lp3971.c
@@
-327,7
+327,7
@@
static int lp3971_i2c_read(struct i2c_client *i2c, char reg, int count,
return -EIO;
ret = i2c_smbus_read_byte_data(i2c, reg);
if (ret < 0)
- return
-EIO
;
+ return
ret
;
*dest = ret;
return 0;