commit | 771733e348e3df5b6283ab3b97d28577452bf09f | [log] [tgz] |
---|---|---|
author | Daniel Kurtz <djkurtz@chromium.org> | Thu Jun 28 21:08:11 2012 +0800 |
committer | Henrik Rydberg <rydberg@euromail.se> | Fri Jun 29 15:58:03 2012 +0200 |
tree | dcdcc637e61aa21a8a345bfb3b4797a1bc6e81c1 | |
parent | 794eb67e76118108af5280ace2be8ae4983a6a81 [diff] |
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>