summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2008-07-14 22:38:26 +0200
committerJean Delvare <khali@mahadeva.delvare>2008-07-14 22:38:26 +0200
commitc80ebe7987931ec4e80abc33ebf8aa2dad0d3763 (patch)
tree83179c695a020742e3b918663ec62f2352bf08e9
parentac7fc4fb2b6a126af8d07f46500440c9641976cf (diff)
downloadlinux-c80ebe7987931ec4e80abc33ebf8aa2dad0d3763.tar.bz2
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>
-rw-r--r--drivers/i2c/algos/i2c-algo-pca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/algos/i2c-algo-pca.c b/drivers/i2c/algos/i2c-algo-pca.c
index e954a20b97a6..d50b329a3c94 100644
--- a/drivers/i2c/algos/i2c-algo-pca.c
+++ b/drivers/i2c/algos/i2c-algo-pca.c
@@ -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);