diff options
Diffstat (limited to 'drivers/hid/hid-sjoy.c')
-rw-r--r-- | drivers/hid/hid-sjoy.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/hid/hid-sjoy.c b/drivers/hid/hid-sjoy.c index 28f774003f03..37845eccddb5 100644 --- a/drivers/hid/hid-sjoy.c +++ b/drivers/hid/hid-sjoy.c | |||
@@ -28,13 +28,11 @@ | |||
28 | 28 | ||
29 | #include <linux/input.h> | 29 | #include <linux/input.h> |
30 | #include <linux/slab.h> | 30 | #include <linux/slab.h> |
31 | #include <linux/usb.h> | ||
32 | #include <linux/hid.h> | 31 | #include <linux/hid.h> |
33 | #include <linux/module.h> | 32 | #include <linux/module.h> |
34 | #include "hid-ids.h" | 33 | #include "hid-ids.h" |
35 | 34 | ||
36 | #ifdef CONFIG_SMARTJOYPLUS_FF | 35 | #ifdef CONFIG_SMARTJOYPLUS_FF |
37 | #include "usbhid/usbhid.h" | ||
38 | 36 | ||
39 | struct sjoyff_device { | 37 | struct sjoyff_device { |
40 | struct hid_report *report; | 38 | struct hid_report *report; |
@@ -57,7 +55,7 @@ static int hid_sjoyff_play(struct input_dev *dev, void *data, | |||
57 | sjoyff->report->field[0]->value[1] = right; | 55 | sjoyff->report->field[0]->value[1] = right; |
58 | sjoyff->report->field[0]->value[2] = left; | 56 | sjoyff->report->field[0]->value[2] = left; |
59 | dev_dbg(&dev->dev, "running with 0x%02x 0x%02x\n", left, right); | 57 | dev_dbg(&dev->dev, "running with 0x%02x 0x%02x\n", left, right); |
60 | usbhid_submit_report(hid, sjoyff->report, USB_DIR_OUT); | 58 | hid_hw_request(hid, sjoyff->report, HID_REQ_SET_REPORT); |
61 | 59 | ||
62 | return 0; | 60 | return 0; |
63 | } | 61 | } |
@@ -115,7 +113,7 @@ static int sjoyff_init(struct hid_device *hid) | |||
115 | sjoyff->report->field[0]->value[0] = 0x01; | 113 | sjoyff->report->field[0]->value[0] = 0x01; |
116 | sjoyff->report->field[0]->value[1] = 0x00; | 114 | sjoyff->report->field[0]->value[1] = 0x00; |
117 | sjoyff->report->field[0]->value[2] = 0x00; | 115 | sjoyff->report->field[0]->value[2] = 0x00; |
118 | usbhid_submit_report(hid, sjoyff->report, USB_DIR_OUT); | 116 | hid_hw_request(hid, sjoyff->report, HID_REQ_SET_REPORT); |
119 | } | 117 | } |
120 | 118 | ||
121 | hid_info(hid, "Force feedback for SmartJoy PLUS PS2/USB adapter\n"); | 119 | hid_info(hid, "Force feedback for SmartJoy PLUS PS2/USB adapter\n"); |