Commit 0c188574 authored by Peter Rosin's avatar Peter Rosin Committed by Greg Kroah-Hartman

i2c: pmcmsp: return message count on master_xfer success

[ Upstream commit de9a8634 ]

Returning zero is wrong in this case.
Signed-off-by: default avatarPeter Rosin <peda@axentia.se>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
Fixes: 1b144df1 ("i2c: New PMC MSP71xx TWI bus driver")
Signed-off-by: default avatarSasha Levin <alexander.levin@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7416dd78
...@@ -567,7 +567,7 @@ static int pmcmsptwi_master_xfer(struct i2c_adapter *adap, ...@@ -567,7 +567,7 @@ static int pmcmsptwi_master_xfer(struct i2c_adapter *adap,
return -1; return -1;
} }
return 0; return num;
} }
static u32 pmcmsptwi_i2c_func(struct i2c_adapter *adapter) static u32 pmcmsptwi_i2c_func(struct i2c_adapter *adapter)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment