diff options
| author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2014-03-08 22:52:43 -0500 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.cz> | 2014-03-14 10:30:24 -0400 |
| commit | 6fd182028c43baf1c7d017d52b0134ecadbdc447 (patch) | |
| tree | b563b33356ab9d8947ff601d8dcc7f7803697570 /include/linux | |
| parent | e534a9352237e84263cecedff283387b144b3ed8 (diff) | |
HID: remove hid_output_raw_report transport implementations
Nobody calls hid_output_raw_report anymore, and nobody should.
We can now remove the various implementation in the different
transport drivers and the declarations.
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/hid.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index 3fe444f4a36f..01a90b8d53bb 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h | |||
| @@ -510,9 +510,6 @@ struct hid_device { /* device report descriptor */ | |||
| 510 | struct hid_usage *, __s32); | 510 | struct hid_usage *, __s32); |
| 511 | void (*hiddev_report_event) (struct hid_device *, struct hid_report *); | 511 | void (*hiddev_report_event) (struct hid_device *, struct hid_report *); |
| 512 | 512 | ||
| 513 | /* handler for raw output data, used by hidraw */ | ||
| 514 | int (*hid_output_raw_report) (struct hid_device *, __u8 *, size_t, unsigned char); | ||
| 515 | |||
| 516 | /* debugging support via debugfs */ | 513 | /* debugging support via debugfs */ |
| 517 | unsigned short debug; | 514 | unsigned short debug; |
| 518 | struct dentry *debug_dir; | 515 | struct dentry *debug_dir; |
| @@ -1020,22 +1017,6 @@ static inline int hid_hw_output_report(struct hid_device *hdev, __u8 *buf, | |||
| 1020 | } | 1017 | } |
| 1021 | 1018 | ||
| 1022 | /** | 1019 | /** |
| 1023 | * hid_output_raw_report - send an output or a feature report to the device | ||
| 1024 | * | ||
| 1025 | * @hdev: hid device | ||
| 1026 | * @buf: raw data to transfer | ||
| 1027 | * @len: length of buf | ||
| 1028 | * @report_type: HID_FEATURE_REPORT or HID_OUTPUT_REPORT | ||
| 1029 | * | ||
| 1030 | * @return: count of data transfered, negative if error | ||
| 1031 | */ | ||
| 1032 | static inline int hid_output_raw_report(struct hid_device *hdev, __u8 *buf, | ||
| 1033 | size_t len, unsigned char report_type) | ||
| 1034 | { | ||
| 1035 | return hdev->hid_output_raw_report(hdev, buf, len, report_type); | ||
| 1036 | } | ||
| 1037 | |||
| 1038 | /** | ||
| 1039 | * hid_hw_idle - send idle request to device | 1020 | * hid_hw_idle - send idle request to device |
| 1040 | * | 1021 | * |
| 1041 | * @hdev: hid device | 1022 | * @hdev: hid device |
