From: Daniel Kurtz Date: Thu, 28 Jun 2012 13:08:11 +0000 (+0800) Subject: Input: atmel_mxt_ts - return errors from i2c layer X-Git-Tag: v3.6-rc1~95^2^2~13^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=771733e348e3df5b6283ab3b97d28577452bf09f;p=pandora-kernel.git Input: atmel_mxt_ts - return errors from i2c layer The i2c layer can report a variety of errors, including -ENXIO for an i2c NAK. Instead of treating them all as -EIO, pass the actual i2c layer error up to the caller. However, still report as -EIO the unlikely case that a transaction was partially completed, and no error message was returned from i2c_*(). Signed-off-by: Daniel Kurtz Signed-off-by: Henrik Rydberg --- Reading git-diff-tree failed