commit | 24a5bb7b1838dc4524dd353224e2aa09c22cac3b | [log] [tgz] |
---|---|---|
author | David Brownell <[email protected]> | Mon Jul 14 22:38:23 2008 +0200 |
committer | Jean Delvare <[email protected]> | Mon Jul 14 22:38:23 2008 +0200 |
tree | 8e7c7bb65b889e20d7a1067d41157b4b150cf045 | |
parent | 75415490d6adc1aecbf0cade0785b007957d0cfe [diff] |
i2c-core: Return -Errno, not -1 More updates to the I2C stack's fault reporting: make the core stop returning "-1" (usually "-EPERM") for all faults. Instead, pass lower level fault code up the stack, or return some appropriate errno. This patch happens to touch almost exclusively SMBus calls. Signed-off-by: David Brownell <[email protected]> Signed-off-by: Jean Delvare <[email protected]>