git.samba.org
/
sfrench
/
cifs-2.6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f1b660
)
mfd: da9063: Propagate errno when I2C mode fails
author
Wolfram Sang
<wsa+renesas@sang-engineering.com>
Tue, 25 May 2021 13:42:43 +0000
(15:42 +0200)
committer
Lee Jones
<lee.jones@linaro.org>
Wed, 2 Jun 2021 09:51:17 +0000
(10:51 +0100)
Don't hardocde EIO but use the obtained value.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Mark Jonas <mark.jonas@de.bosch.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/da9063-i2c.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/da9063-i2c.c
b/drivers/mfd/da9063-i2c.c
index 783a14af18e26cbf35588070dc1f1ce79d29b1c7..4b7f707b7952c012f749ee1bf71dd02fbacd91c9 100644
(file)
--- a/
drivers/mfd/da9063-i2c.c
+++ b/
drivers/mfd/da9063-i2c.c
@@
-448,7
+448,7
@@
static int da9063_i2c_probe(struct i2c_client *i2c,
DA9063_TWOWIRE_TO);
if (ret < 0) {
dev_err(da9063->dev, "Failed to set Two-Wire Bus Mode.\n");
- return
-EIO
;
+ return
ret
;
}
}