]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - Documentation/i2c/writing-clients
i2c-core: Return -Errno, not -1
[karo-tx-linux.git] / Documentation / i2c / writing-clients
index d4cd4126d1adeca025e76a2511b0881cd6d0c00c..ba5d1971f35f4e76ee928f54dee88ee46bfcab20 100644 (file)
@@ -598,10 +598,10 @@ be added back later if needed:
                                           u8 command, u8 length,
                                           u8 *values)
 
-All these transactions return -1 on failure. The 'write' transactions 
-return 0 on success; the 'read' transactions return the read value, except 
-for read_block, which returns the number of values read. The block buffers 
-need not be longer than 32 bytes.
+All these transactions return a negative errno value on failure. The 'write'
+transactions return 0 on success; the 'read' transactions return the read
+value, except for block transactions, which return the number of values
+read. The block buffers need not be longer than 32 bytes.
 
 You can read the file `smbus-protocol' for more information about the
 actual SMBus protocol.