Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i2c-pca-algo: Fix error code

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

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Jean Delvare <khali@linux-fr.org>

authored by

Wolfram Sang and committed by
Jean Delvare
c80ebe79 ac7fc4fb

+1 -1
+1 -1
drivers/i2c/algos/i2c-algo-pca.c
··· 182 182 } 183 183 if (state != 0xf8) { 184 184 dev_dbg(&i2c_adap->dev, "bus is not idle. status is %#04x\n", state); 185 - return -EIO; 185 + return -EAGAIN; 186 186 } 187 187 188 188 DEB1("{{{ XFER %d messages\n", num);