diff options
Diffstat (limited to 'drivers/hid/hid-lg4ff.c')
-rw-r--r-- | drivers/hid/hid-lg4ff.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/hid/hid-lg4ff.c b/drivers/hid/hid-lg4ff.c index 65a6ec8d3742..7da40a1797cd 100644 --- a/drivers/hid/hid-lg4ff.c +++ b/drivers/hid/hid-lg4ff.c | |||
@@ -202,7 +202,7 @@ static int hid_lg4ff_play(struct input_dev *dev, void *data, struct ff_effect *e | |||
202 | value[5] = 0x00; | 202 | value[5] = 0x00; |
203 | value[6] = 0x00; | 203 | value[6] = 0x00; |
204 | 204 | ||
205 | usbhid_submit_report(hid, report, USB_DIR_OUT); | 205 | hid_hw_request(hid, report, HID_REQ_SET_REPORT); |
206 | break; | 206 | break; |
207 | } | 207 | } |
208 | return 0; | 208 | return 0; |
@@ -225,7 +225,7 @@ static void hid_lg4ff_set_autocenter_default(struct input_dev *dev, u16 magnitud | |||
225 | value[5] = 0x00; | 225 | value[5] = 0x00; |
226 | value[6] = 0x00; | 226 | value[6] = 0x00; |
227 | 227 | ||
228 | usbhid_submit_report(hid, report, USB_DIR_OUT); | 228 | hid_hw_request(hid, report, HID_REQ_SET_REPORT); |
229 | } | 229 | } |
230 | 230 | ||
231 | /* Sends autocentering command compatible with Formula Force EX */ | 231 | /* Sends autocentering command compatible with Formula Force EX */ |
@@ -245,7 +245,7 @@ static void hid_lg4ff_set_autocenter_ffex(struct input_dev *dev, u16 magnitude) | |||
245 | value[5] = 0x00; | 245 | value[5] = 0x00; |
246 | value[6] = 0x00; | 246 | value[6] = 0x00; |
247 | 247 | ||
248 | usbhid_submit_report(hid, report, USB_DIR_OUT); | 248 | hid_hw_request(hid, report, HID_REQ_SET_REPORT); |
249 | } | 249 | } |
250 | 250 | ||
251 | /* Sends command to set range compatible with G25/G27/Driving Force GT */ | 251 | /* Sends command to set range compatible with G25/G27/Driving Force GT */ |
@@ -265,7 +265,7 @@ static void hid_lg4ff_set_range_g25(struct hid_device *hid, u16 range) | |||
265 | value[5] = 0x00; | 265 | value[5] = 0x00; |
266 | value[6] = 0x00; | 266 | value[6] = 0x00; |
267 | 267 | ||
268 | usbhid_submit_report(hid, report, USB_DIR_OUT); | 268 | hid_hw_request(hid, report, HID_REQ_SET_REPORT); |
269 | } | 269 | } |
270 | 270 | ||
271 | /* Sends commands to set range compatible with Driving Force Pro wheel */ | 271 | /* Sends commands to set range compatible with Driving Force Pro wheel */ |
@@ -294,7 +294,7 @@ static void hid_lg4ff_set_range_dfp(struct hid_device *hid, __u16 range) | |||
294 | report->field[0]->value[1] = 0x02; | 294 | report->field[0]->value[1] = 0x02; |
295 | full_range = 200; | 295 | full_range = 200; |
296 | } | 296 | } |
297 | usbhid_submit_report(hid, report, USB_DIR_OUT); | 297 | hid_hw_request(hid, report, HID_REQ_SET_REPORT); |
298 | 298 | ||
299 | /* Prepare "fine" limit command */ | 299 | /* Prepare "fine" limit command */ |
300 | value[0] = 0x81; | 300 | value[0] = 0x81; |
@@ -306,7 +306,7 @@ static void hid_lg4ff_set_range_dfp(struct hid_device *hid, __u16 range) | |||
306 | value[6] = 0x00; | 306 | value[6] = 0x00; |
307 | 307 | ||
308 | if (range == 200 || range == 900) { /* Do not apply any fine limit */ | 308 | if (range == 200 || range == 900) { /* Do not apply any fine limit */ |
309 | usbhid_submit_report(hid, report, USB_DIR_OUT); | 309 | hid_hw_request(hid, report, HID_REQ_SET_REPORT); |
310 | return; | 310 | return; |
311 | } | 311 | } |
312 | 312 | ||
@@ -320,7 +320,7 @@ static void hid_lg4ff_set_range_dfp(struct hid_device *hid, __u16 range) | |||
320 | value[5] = (start_right & 0xe) << 4 | (start_left & 0xe); | 320 | value[5] = (start_right & 0xe) << 4 | (start_left & 0xe); |
321 | value[6] = 0xff; | 321 | value[6] = 0xff; |
322 | 322 | ||
323 | usbhid_submit_report(hid, report, USB_DIR_OUT); | 323 | hid_hw_request(hid, report, HID_REQ_SET_REPORT); |
324 | } | 324 | } |
325 | 325 | ||
326 | static void hid_lg4ff_switch_native(struct hid_device *hid, const struct lg4ff_native_cmd *cmd) | 326 | static void hid_lg4ff_switch_native(struct hid_device *hid, const struct lg4ff_native_cmd *cmd) |
@@ -334,7 +334,7 @@ static void hid_lg4ff_switch_native(struct hid_device *hid, const struct lg4ff_n | |||
334 | for (i = 0; i < 7; i++) | 334 | for (i = 0; i < 7; i++) |
335 | report->field[0]->value[i] = cmd->cmd[j++]; | 335 | report->field[0]->value[i] = cmd->cmd[j++]; |
336 | 336 | ||
337 | usbhid_submit_report(hid, report, USB_DIR_OUT); | 337 | hid_hw_request(hid, report, HID_REQ_SET_REPORT); |
338 | } | 338 | } |
339 | } | 339 | } |
340 | 340 | ||
@@ -410,7 +410,7 @@ static void lg4ff_set_leds(struct hid_device *hid, __u8 leds) | |||
410 | value[4] = 0x00; | 410 | value[4] = 0x00; |
411 | value[5] = 0x00; | 411 | value[5] = 0x00; |
412 | value[6] = 0x00; | 412 | value[6] = 0x00; |
413 | usbhid_submit_report(hid, report, USB_DIR_OUT); | 413 | hid_hw_request(hid, report, HID_REQ_SET_REPORT); |
414 | } | 414 | } |
415 | 415 | ||
416 | static void lg4ff_led_set_brightness(struct led_classdev *led_cdev, | 416 | static void lg4ff_led_set_brightness(struct led_classdev *led_cdev, |