From: David Brownell Date: Mon, 14 Jul 2008 20:38:23 +0000 (+0200) Subject: i2c-core: Return -Errno, not -1 X-Git-Tag: v2.6.27-rc1~1077^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24a5bb7b1838dc4524dd353224e2aa09c22cac3b;p=pandora-kernel.git 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 Signed-off-by: Jean Delvare --- Reading git-diff-tree failed