HID: usbhid: change return error of usbhid_output_report
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Mon, 10 Feb 2014 17:58:51 +0000 (12:58 -0500)
committerJiri Kosina <jkosina@suse.cz>
Mon, 17 Feb 2014 13:55:00 +0000 (14:55 +0100)
commitddea1af9d9387665ee194ae1d98ec0d49c169313
tree98a66a8969437364fffbce8af3d81bbc80c220c7
parent649f94790314b502bc4e905e005d89c3b693d60a
HID: usbhid: change return error of usbhid_output_report

If there is no urbout when sending a output report, ENOSYS (Function
not implemented) is a better error than EIO (I/O error).

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/usbhid/hid-core.c