diff options
Diffstat (limited to 'drivers/hid/hid-lg.c')
-rw-r--r-- | drivers/hid/hid-lg.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/hid/hid-lg.c b/drivers/hid/hid-lg.c index 9fe9d4ac3114..a976f48263f6 100644 --- a/drivers/hid/hid-lg.c +++ b/drivers/hid/hid-lg.c | |||
@@ -692,7 +692,8 @@ static int lg_probe(struct hid_device *hdev, const struct hid_device_id *id) | |||
692 | if (hdev->product == USB_DEVICE_ID_LOGITECH_WII_WHEEL) { | 692 | if (hdev->product == USB_DEVICE_ID_LOGITECH_WII_WHEEL) { |
693 | unsigned char buf[] = { 0x00, 0xAF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; | 693 | unsigned char buf[] = { 0x00, 0xAF, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; |
694 | 694 | ||
695 | ret = hdev->hid_output_raw_report(hdev, buf, sizeof(buf), HID_FEATURE_REPORT); | 695 | ret = hid_hw_raw_request(hdev, buf[0], buf, sizeof(buf), |
696 | HID_FEATURE_REPORT, HID_REQ_SET_REPORT); | ||
696 | 697 | ||
697 | if (ret >= 0) { | 698 | if (ret >= 0) { |
698 | /* insert a little delay of 10 jiffies ~ 40ms */ | 699 | /* insert a little delay of 10 jiffies ~ 40ms */ |
@@ -704,7 +705,8 @@ static int lg_probe(struct hid_device *hdev, const struct hid_device_id *id) | |||
704 | buf[1] = 0xB2; | 705 | buf[1] = 0xB2; |
705 | get_random_bytes(&buf[2], 2); | 706 | get_random_bytes(&buf[2], 2); |
706 | 707 | ||
707 | ret = hdev->hid_output_raw_report(hdev, buf, sizeof(buf), HID_FEATURE_REPORT); | 708 | ret = hid_hw_raw_request(hdev, buf[0], buf, sizeof(buf), |
709 | HID_FEATURE_REPORT, HID_REQ_SET_REPORT); | ||
708 | } | 710 | } |
709 | } | 711 | } |
710 | 712 | ||