diff options
Diffstat (limited to 'drivers/hid/hid-lg3ff.c')
-rw-r--r-- | drivers/hid/hid-lg3ff.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/hid/hid-lg3ff.c b/drivers/hid/hid-lg3ff.c index f98644c26c1d..e52f181f6aa1 100644 --- a/drivers/hid/hid-lg3ff.c +++ b/drivers/hid/hid-lg3ff.c | |||
@@ -22,10 +22,8 @@ | |||
22 | 22 | ||
23 | 23 | ||
24 | #include <linux/input.h> | 24 | #include <linux/input.h> |
25 | #include <linux/usb.h> | ||
26 | #include <linux/hid.h> | 25 | #include <linux/hid.h> |
27 | 26 | ||
28 | #include "usbhid/usbhid.h" | ||
29 | #include "hid-lg.h" | 27 | #include "hid-lg.h" |
30 | 28 | ||
31 | /* | 29 | /* |
@@ -92,7 +90,7 @@ static int hid_lg3ff_play(struct input_dev *dev, void *data, | |||
92 | report->field[0]->value[1] = (unsigned char)(-x); | 90 | report->field[0]->value[1] = (unsigned char)(-x); |
93 | report->field[0]->value[31] = (unsigned char)(-y); | 91 | report->field[0]->value[31] = (unsigned char)(-y); |
94 | 92 | ||
95 | usbhid_submit_report(hid, report, USB_DIR_OUT); | 93 | hid_hw_request(hid, report, HID_REQ_SET_REPORT); |
96 | break; | 94 | break; |
97 | } | 95 | } |
98 | return 0; | 96 | return 0; |
@@ -118,7 +116,7 @@ static void hid_lg3ff_set_autocenter(struct input_dev *dev, u16 magnitude) | |||
118 | report->field[0]->value[33] = 0x7F; | 116 | report->field[0]->value[33] = 0x7F; |
119 | report->field[0]->value[34] = 0x7F; | 117 | report->field[0]->value[34] = 0x7F; |
120 | 118 | ||
121 | usbhid_submit_report(hid, report, USB_DIR_OUT); | 119 | hid_hw_request(hid, report, HID_REQ_SET_REPORT); |
122 | } | 120 | } |
123 | 121 | ||
124 | 122 | ||