diff options
| author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2014-02-20 15:24:49 -0500 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.cz> | 2014-02-24 11:23:15 -0500 |
| commit | 3c86726cfe38952f0366f86acfbbb025813ec1c2 (patch) | |
| tree | 74192839f11f698ee74ea55b4c17717e4c1bffba /include/linux | |
| parent | 2ebaebcf31096f83401c850393e93bc8f28db0e9 (diff) | |
HID: make .raw_request mandatory
SET_REPORT and GET_REPORT are mandatory in the HID specification.
Make the corresponding API in hid-core mandatory too, which removes the
need to test against it in some various places.
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 'include/linux')
| -rw-r--r-- | include/linux/hid.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index 60f3ff762376..5eb282e0dff7 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h | |||
| @@ -992,11 +992,8 @@ static inline int hid_hw_raw_request(struct hid_device *hdev, | |||
| 992 | if (len < 1 || len > HID_MAX_BUFFER_SIZE || !buf) | 992 | if (len < 1 || len > HID_MAX_BUFFER_SIZE || !buf) |
| 993 | return -EINVAL; | 993 | return -EINVAL; |
| 994 | 994 | ||
| 995 | if (hdev->ll_driver->raw_request) | 995 | return hdev->ll_driver->raw_request(hdev, reportnum, buf, len, |
| 996 | return hdev->ll_driver->raw_request(hdev, reportnum, buf, len, | ||
| 997 | rtype, reqtype); | 996 | rtype, reqtype); |
| 998 | |||
| 999 | return -ENOSYS; | ||
| 1000 | } | 997 | } |
| 1001 | 998 | ||
| 1002 | /** | 999 | /** |
