diff options
author | Peter Rosin <peda@axentia.se> | 2018-05-09 21:46:30 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2018-05-15 09:31:19 +0200 |
commit | 12d9bbc5a7f347eaa65ff2a9d34995cadc05eb1b (patch) | |
tree | adcedc7b4be1043943ae77210c558c56fcb55d9d /drivers/i2c | |
parent | de9a8634f1cb4560a35696d472cc7f1383d9b866 (diff) | |
download | op-kernel-dev-12d9bbc5a7f347eaa65ff2a9d34995cadc05eb1b.zip op-kernel-dev-12d9bbc5a7f347eaa65ff2a9d34995cadc05eb1b.tar.gz |
i2c: pmcmsp: fix error return from master_xfer
Returning -1 (-EPERM) is not appropriate here, go with -EIO.
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")
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-pmcmsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-pmcmsp.c b/drivers/i2c/busses/i2c-pmcmsp.c index ec27e27..dae8ac6 100644 --- a/drivers/i2c/busses/i2c-pmcmsp.c +++ b/drivers/i2c/busses/i2c-pmcmsp.c @@ -564,7 +564,7 @@ static int pmcmsptwi_master_xfer(struct i2c_adapter *adap, * TODO: We could potentially loop and retry in the case * of MSP_TWI_XFER_TIMEOUT. */ - return -1; + return -EIO; } return num; |