summaryrefslogtreecommitdiffstats
path: root/Documentation/i2c/fault-codes
Commit message (Collapse)AuthorAgeFilesLines
* Documentation: i2c: Remove obsolete exampleHelia Correia2014-01-091-3/+0
| | | | | | | | | | | | | | | | Documentation/i2c/fault-codes illustrates EINVAL error code as follows: "One example would be a driver trying an SMBus Block Write with block size outside the range of 1-32 bytes." However, the actual implementation of i2c subsystem truncates data length to be 32 bytes. Hence this example cannot happen anymore, and since it's obsolete, let's simply remove it from Documentation/i2c/fault-codes. Signed-off-by: Helia Correia <helia.correia@intel.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
* i2c: Document standard fault codesDavid Brownell2008-07-141-0/+127
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@users.sourceforge.net> Signed-off-by: Jean Delvare <khali@linux-fr.org>