]> git.baikalelectronics.ru Git - kernel.git/commit
i2c-algo-bit: Fix NAK/ARB comments
authorDavid Brownell <david-b@pacbell.net>
Sun, 27 Jan 2008 17:14:46 +0000 (18:14 +0100)
committerJean Delvare <khali@hyperion.delvare>
Sun, 27 Jan 2008 17:14:46 +0000 (18:14 +0100)
commit78026dc0f0c92d262543634714e451bd566ce8af
treeaf5683e3ff7ba26913e2f77bc8cf227702049590
parentccfde2ed03e931c19b67f3878b167ee505c55b72
i2c-algo-bit: Fix NAK/ARB comments

Update comments and logging on return path for byte writes.  NAK is
an error, to be reported or optionally ignored.  Timeouts are always
errors.  Lost arbitration is not currently handled, so don't even list
it as an option in the error message.

Don't return bogus EFAULT code for inappropriate NAK; EIO is better,
there is no bad userspace address in question.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/algos/i2c-algo-bit.c