From: David Brownell Date: Mon, 14 Jul 2008 20:38:25 +0000 (+0200) Subject: i2c: Bus drivers return -Errno not -1 X-Git-Tag: v2.6.27-rc1~1077^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97140342e69d479a3ad82bfd4c154c0b08fe3eea;p=pandora-kernel.git i2c: Bus drivers return -Errno not -1 Tighten error paths used by various i2c adapters (mostly x86) so they return real fault/errno codes instead of a "-1" (which is most often interpreted as "-EPERM"). Build tested, with eyeball review. One minor initial goal is to have adapters consistently return the code "-ENXIO" when addressing a device doesn't get an ACK response, at least in the probe paths where they are already good at stifling related logspam. Signed-off-by: David Brownell Signed-off-by: Jean Delvare --- Reading git-diff-tree failed