aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/nls.h
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2011-11-10 17:40:44 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-15 10:49:42 -0800
commitc6249ff7521c0211e9daa37f07a4c016a5c4d454 (patch)
treeec21f5ec94e2fc221bf883436899eee66486d82f /include/linux/nls.h
parentUSB: serial: fix whitespace issues (diff)
downloadwireguard-linux-c6249ff7521c0211e9daa37f07a4c016a5c4d454.tar.xz
wireguard-linux-c6249ff7521c0211e9daa37f07a4c016a5c4d454.zip
USB: serial: do not forward USB specific errors in write
Use usb_translate_errors() to map USB-specific errors to errors appropriate for user space (ENOMEM, ENODEV and EIO) in write. 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 'include/linux/nls.h')
0 files changed, 0 insertions, 0 deletions