projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f53370
)
media: saa7146: fix error return from master_xfer
author
Peter Rosin
<
[email protected]
>
Wed, 9 May 2018 19:48:07 +0000
(15:48 -0400)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Fri, 11 May 2018 15:30:57 +0000
(11:30 -0400)
Returning -1 (-EPERM) is not appropriate here, go with -EIO.
Signed-off-by: Peter Rosin <
[email protected]
>
Signed-off-by: Hans Verkuil <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/common/saa7146/saa7146_i2c.c
patch
|
blob
|
history
diff --git
a/drivers/media/common/saa7146/saa7146_i2c.c
b/drivers/media/common/saa7146/saa7146_i2c.c
index f9e099d812c8dae41cdfe9befd9d1c670db0b54a..3feddc52c446b38f54a01868b3ef587fb4fd2de2 100644
(file)
--- a/
drivers/media/common/saa7146/saa7146_i2c.c
+++ b/
drivers/media/common/saa7146/saa7146_i2c.c
@@
-308,7
+308,7
@@
static int saa7146_i2c_transfer(struct saa7146_dev *dev, const struct i2c_msg *m
/* prepare the message(s), get number of u32s to transfer */
count = saa7146_i2c_msg_prepare(msgs, num, buffer);
if ( 0 > count ) {
- err = -
1
;
+ err = -
EIO
;
goto out;
}
@@
-360,7
+360,7
@@
static int saa7146_i2c_transfer(struct saa7146_dev *dev, const struct i2c_msg *m
/* if any things had to be read, get the results */
if ( 0 != saa7146_i2c_msg_cleanup(msgs, num, buffer)) {
DEB_I2C("could not cleanup i2c-message\n");
- err = -
1
;
+ err = -
EIO
;
goto out;
}