Input: atmel_mxt_ts - return errors from i2c layer
authorDaniel Kurtz <djkurtz@chromium.org>
Thu, 28 Jun 2012 13:08:11 +0000 (21:08 +0800)
committerHenrik Rydberg <rydberg@euromail.se>
Fri, 29 Jun 2012 13:58:03 +0000 (15:58 +0200)
commit771733e348e3df5b6283ab3b97d28577452bf09f
treedcdcc637e61aa21a8a345bfb3b4797a1bc6e81c1
parent794eb67e76118108af5280ace2be8ae4983a6a81
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 <djkurtz@chromium.org>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
drivers/input/touchscreen/atmel_mxt_ts.c