commit | 704426649dd4324b34cefea322f4333e5280f852 | [log] [tgz] |
---|---|---|
author | Pavan Savoy <pavan_savoy@ti.com> | Fri Feb 04 02:23:11 2011 -0600 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Fri Feb 04 12:41:20 2011 -0800 |
tree | 5f3b511437974e542e07bfc4a4e2558086be25c8 | |
parent | ec60d0ad20ff8796dc41b30a9dce485478ccd263 [diff] |
drivers:misc: ti-st: fix error codes set-right the error codes that the shared transport driver returns. Instead of magic numbers like -1, return relevant codes such as ETIMEDOUT or EIO, EAGAIN when wait times out or uart write bytes don't match expected value or when registration fails and needs to be attempted again. Signed-off-by: Pavan Savoy <pavan_savoy@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>