[i2c] [patch 2.6.25-git] i2c_adapters: return -Errno not -1
Jean Delvare
khali at linux-fr.org
Thu May 15 20:33:52 CEST 2008
On Wed, 14 May 2008 07:50:49 -0700, David Brownell wrote:
> On Wednesday 14 May 2008, Jean Delvare wrote:
> >
> > > Here's a patch adding such information ... against 2.6.26-rc2 and
> > > in synch with both the "-Errno not -1" patches I've sent.
> >
> > Thanks for doing this. This document will be very helpful both for me
> > when reviewing your patches, and for both I2C bus and I2C device driver
> > authors later.
>
> Updated version.
>
> ======== CUT HERE
> Create Documentation/i2c/fault-codes to help standardize
> fault/error code usage in the I2C stack. It turns out that
> returning -1 (-EPERM) for everything was not at all helpful.
>
> Signed-off-by: David Brownell <dbrownell at users.sourceforge.net>
> ---
> Documentation/i2c/fault-codes | 127 ++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 127 insertions(+)
Applied, thanks.
--
Jean Delvare
More information about the i2c
mailing list