Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c80ebe79 authored by Wolfram Sang's avatar Wolfram Sang Committed by Jean Delvare
Browse files

i2c-pca-algo: Fix error code



Give a more concrete error code, when the bus is not idle.

Signed-off-by: default avatarWolfram Sang <w.sang@pengutronix.de>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent ac7fc4fb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -182,7 +182,7 @@ static int pca_xfer(struct i2c_adapter *i2c_adap,
	}
	if (state != 0xf8) {
		dev_dbg(&i2c_adap->dev, "bus is not idle. status is %#04x\n", state);
		return -EIO;
		return -EAGAIN;
	}

	DEB1("{{{ XFER %d messages\n", num);