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:
06cb616
)
i2c: pmcmsp: return message count on master_xfer success
author
Peter Rosin
<peda@axentia.se>
Wed, 9 May 2018 19:46:29 +0000
(21:46 +0200)
committer
Wolfram Sang
<wsa@the-dreams.de>
Tue, 15 May 2018 07:30:34 +0000
(09:30 +0200)
Returning zero is wrong in this case.
Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Fixes: 1b144df1d7d6 ("i2c: New PMC MSP71xx TWI bus driver")
drivers/i2c/busses/i2c-pmcmsp.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-pmcmsp.c
b/drivers/i2c/busses/i2c-pmcmsp.c
index 2aa0e83174c52895a0fb1416e8a17a00d31b24c6..ec27e27e8d068fae16ea8cf80bb1e94a18142286 100644
(file)
--- a/
drivers/i2c/busses/i2c-pmcmsp.c
+++ b/
drivers/i2c/busses/i2c-pmcmsp.c
@@
-567,7
+567,7
@@
static int pmcmsptwi_master_xfer(struct i2c_adapter *adap,
return -1;
}
- return
0
;
+ return
num
;
}
static u32 pmcmsptwi_i2c_func(struct i2c_adapter *adapter)