diff options
author | Janusz Użycki <j.uzycki@elproma.com.pl> | 2014-09-09 18:19:30 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2014-09-20 14:58:19 +0200 |
commit | a4780d039ca5c3ef318db084f1bfc6ebed6876c8 (patch) | |
tree | c566a90b04f75683b249a9a96821132eb261ab5b /drivers/i2c | |
parent | 979bbf7b7ae75cfc06e09d09eda38009a3bdc4a4 (diff) |
i2c: mxs: fix error message in pio transfer
If I2C_M_RD flag is set SELECT command is sent and afterward READ
command. The patch fixes READ command to return READ failure error
message instead of SELECT failure error message.
Signed-off-by: Janusz Uzycki <j.uzycki@elproma.com.pl>
Acked-by: Marek Vasut <marex@denx.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-mxs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-mxs.c b/drivers/i2c/busses/i2c-mxs.c index 7170fc89282..65a21fed08b 100644 --- a/drivers/i2c/busses/i2c-mxs.c +++ b/drivers/i2c/busses/i2c-mxs.c @@ -429,7 +429,7 @@ static int mxs_i2c_pio_setup_xfer(struct i2c_adapter *adap, ret = mxs_i2c_pio_wait_xfer_end(i2c); if (ret) { dev_err(i2c->dev, - "PIO: Failed to send SELECT command!\n"); + "PIO: Failed to send READ command!\n"); goto cleanup; } |