Input: xpad - remove needless bulk out URB used for LED setup
authorPavel Rojtberg <rojtberg@gmail.com>
Wed, 7 Oct 2015 00:07:31 +0000 (17:07 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 10 Oct 2015 18:27:28 +0000 (11:27 -0700)
commita306a65f46acb040d208523592a2d34f67d47a61
tree27b7549b63393028f3f8d4c5f42f1a47f58d03f1
parente3b651745a03810efffd7ebf2a9b5be65fb70ec3
Input: xpad - remove needless bulk out URB used for LED setup

This code was probably wrong ever since and is redundant with
xpad_send_led_command. Both try to send a similar command to the xbox360
controller. However xpad_send_led_command correctly uses the pad_nr instead
of bInterfaceNumber to select the led and re-uses the irq_out URB instead
of creating a new one.

Note that this change only affects the two supported wireless controllers.
Tested using the xbox360 wireless controller (PC).

Signed-off-by: Pavel Rojtberg <rojtberg@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/xpad.c