mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-14 10:15:13 +00:00
i2c: pmcmsp: return message count on master_xfer success
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: 1b144df1d7 ("i2c: New PMC MSP71xx TWI bus driver")
This commit is contained in:
parent
06cb616b1b
commit
de9a8634f1
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue