diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2014-02-10 12:58:51 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2014-02-17 08:55:00 -0500 |
commit | ddea1af9d9387665ee194ae1d98ec0d49c169313 (patch) | |
tree | 98a66a8969437364fffbce8af3d81bbc80c220c7 /drivers/hid/usbhid/hid-core.c | |
parent | 649f94790314b502bc4e905e005d89c3b693d60a (diff) |
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>
Diffstat (limited to 'drivers/hid/usbhid/hid-core.c')
-rw-r--r-- | drivers/hid/usbhid/hid-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c index b9a770f4d7ae..0d1d87533f48 100644 --- a/drivers/hid/usbhid/hid-core.c +++ b/drivers/hid/usbhid/hid-core.c | |||
@@ -922,7 +922,7 @@ static int usbhid_output_report(struct hid_device *hid, __u8 *buf, size_t count) | |||
922 | int actual_length, skipped_report_id = 0, ret; | 922 | int actual_length, skipped_report_id = 0, ret; |
923 | 923 | ||
924 | if (!usbhid->urbout) | 924 | if (!usbhid->urbout) |
925 | return -EIO; | 925 | return -ENOSYS; |
926 | 926 | ||
927 | if (buf[0] == 0x0) { | 927 | if (buf[0] == 0x0) { |
928 | /* Don't send the Report ID */ | 928 | /* Don't send the Report ID */ |