i2c: pmcmsp: fix error return from master_xfer
authorPeter Rosin <peda@axentia.se>
Wed, 9 May 2018 19:46:30 +0000 (21:46 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 15 May 2018 07:31:19 +0000 (09:31 +0200)
commit12d9bbc5a7f347eaa65ff2a9d34995cadc05eb1b
treeadcedc7b4be1043943ae77210c558c56fcb55d9d
parentde9a8634f1cb4560a35696d472cc7f1383d9b866
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")
drivers/i2c/busses/i2c-pmcmsp.c