diff options
author | Johan Hovold <jhovold@gmail.com> | 2011-11-10 17:38:13 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-15 19:47:41 +0100 |
commit | 3827d8762febd68ff1b6db0bb5efa55bfbccaeb4 (patch) | |
tree | 1103c4e441d74776e0949399d01e11746aa58a88 /drivers/usb/serial/ir-usb.c | |
parent | USB: move usb_translate_errors to linux/usb.h (diff) | |
download | linux-3827d8762febd68ff1b6db0bb5efa55bfbccaeb4.tar.xz linux-3827d8762febd68ff1b6db0bb5efa55bfbccaeb4.zip |
USB: serial: do not forward USB specific errors in open
Use usb_translate_errors() to map USB-specific errors to errors
appropriate for user space (ENOMEM, ENODEV and EIO) in open.
Currently almost all serial drivers simply forward error codes from the
stack (e.g. from usb_submit_urb()), but these codes often have
different meanings in user-space. Doing the mapping in usb-serial core
simplifies driver code and allows for more consistent error reporting.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/ir-usb.c')
0 files changed, 0 insertions, 0 deletions