USB: add helper to convert USB error codes
authorOliver Neukum <oliver@neukum.org>
Sun, 19 Dec 2010 20:54:48 +0000 (21:54 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 23 Jan 2011 03:35:38 +0000 (19:35 -0800)
commit60678b60d78cd268a3aed3044dfbbb85760b2c54
tree878df8903a37092318d0a1987c98a538c16fb044
parent1bae4ce27c9c90344f23c65ea6966c50ffeae2f5
USB: add helper to convert USB error codes

This converts error codes specific to USB to generic error codes
that can be returned to user space. Tests showed that it is so small
that it is better inlined.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/usb.h