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 /net/bluetooth/hidp | |
| 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 'net/bluetooth/hidp')
| -rw-r--r-- | net/bluetooth/hidp/core.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c index 98e4840935e2..514ddb5aef96 100644 --- a/net/bluetooth/hidp/core.c +++ b/net/bluetooth/hidp/core.c | |||
| @@ -382,18 +382,6 @@ static int hidp_output_report(struct hid_device *hid, __u8 *data, size_t count) | |||
| 382 | data, count); | 382 | data, count); |
| 383 | } | 383 | } |
| 384 | 384 | ||
| 385 | static int hidp_output_raw_report(struct hid_device *hid, unsigned char *data, | ||
| 386 | size_t count, unsigned char report_type) | ||
| 387 | { | ||
| 388 | if (report_type == HID_OUTPUT_REPORT) { | ||
| 389 | return hidp_output_report(hid, data, count); | ||
| 390 | } else if (report_type != HID_FEATURE_REPORT) { | ||
| 391 | return -EINVAL; | ||
| 392 | } | ||
| 393 | |||
| 394 | return hidp_set_raw_report(hid, data[0], data, count, report_type); | ||
| 395 | } | ||
| 396 | |||
| 397 | static int hidp_raw_request(struct hid_device *hid, unsigned char reportnum, | 385 | static int hidp_raw_request(struct hid_device *hid, unsigned char reportnum, |
| 398 | __u8 *buf, size_t len, unsigned char rtype, | 386 | __u8 *buf, size_t len, unsigned char rtype, |
| 399 | int reqtype) | 387 | int reqtype) |
| @@ -776,8 +764,6 @@ static int hidp_setup_hid(struct hidp_session *session, | |||
| 776 | hid->dev.parent = &session->conn->hcon->dev; | 764 | hid->dev.parent = &session->conn->hcon->dev; |
| 777 | hid->ll_driver = &hidp_hid_driver; | 765 | hid->ll_driver = &hidp_hid_driver; |
| 778 | 766 | ||
| 779 | hid->hid_output_raw_report = hidp_output_raw_report; | ||
| 780 | |||
| 781 | /* True if device is blacklisted in drivers/hid/hid-core.c */ | 767 | /* True if device is blacklisted in drivers/hid/hid-core.c */ |
| 782 | if (hid_ignore(hid)) { | 768 | if (hid_ignore(hid)) { |
| 783 | hid_destroy_device(session->hid); | 769 | hid_destroy_device(session->hid); |
