[i2c] [PATCH] Add support for the S-35390A RTC chip.
David Brownell
david-b at pacbell.net
Tue Jan 8 13:39:27 CET 2008
On Tuesday 08 January 2008, Jean Delvare wrote:
>
> > In fact it's common practice to adopt subsystem-specific conventions
> > about what a given errno value indicates. Otherwise, almost every
> > fault observed would map to a small handful ... making them useless
> > for fault recovery logic, and at best problematic in terms of any
> > diagnostic utility.
>
> A common practice to use random error codes
Hey, *I* didn't say "random error codes".
> just to make sure they are
> unique? I don't think so, no. Resource not available is EBUSY, not
> ENOCSI, period. Please fix your driver.
Actually, "address in use" is EADDRINUSE. I made that change.
(Another reason to use oddball errno values is as a placeholder
until a more appropriate one is found.)
- Dave
More information about the i2c
mailing list