diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2014-02-10 12:58:55 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2014-02-17 08:57:17 -0500 |
commit | 7e0bc880fce51ba3bd9128b8df9dc59567c5f73a (patch) | |
tree | 0f4116e1f79844b25f1411a6e63cd47c013ea52c | |
parent | b0dd72aafd785785bedbb6db932955807e454a65 (diff) |
HID: wiimote: replace hid_output_raw_report with hid_hw_output_report for output requests
For BT transport layer,
ret = hid_output_raw_report(A, B, C, HID_OUTPUT_REPORT);
is equivalent to
ret = hid_hw_output_report(A, B, C);
So use the new API where available
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>
-rw-r--r-- | drivers/hid/hid-wiimote-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/hid-wiimote-core.c b/drivers/hid/hid-wiimote-core.c index d7dc6c5bc244..d00391418d1a 100644 --- a/drivers/hid/hid-wiimote-core.c +++ b/drivers/hid/hid-wiimote-core.c | |||
@@ -28,14 +28,14 @@ static int wiimote_hid_send(struct hid_device *hdev, __u8 *buffer, | |||
28 | __u8 *buf; | 28 | __u8 *buf; |
29 | int ret; | 29 | int ret; |
30 | 30 | ||
31 | if (!hdev->hid_output_raw_report) | 31 | if (!hdev->ll_driver->output_report) |
32 | return -ENODEV; | 32 | return -ENODEV; |
33 | 33 | ||
34 | buf = kmemdup(buffer, count, GFP_KERNEL); | 34 | buf = kmemdup(buffer, count, GFP_KERNEL); |
35 | if (!buf) | 35 | if (!buf) |
36 | return -ENOMEM; | 36 | return -ENOMEM; |
37 | 37 | ||
38 | ret = hid_output_raw_report(hdev, buf, count, HID_OUTPUT_REPORT); | 38 | ret = hid_hw_output_report(hdev, buf, count); |
39 | 39 | ||
40 | kfree(buf); | 40 | kfree(buf); |
41 | return ret; | 41 | return ret; |