]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfce26019756436cf852790c56252c59f9ff97f9c
tree27b7549b63393028f3f8d4c5f42f1a47f58d03f1
parent2aa2f73fbf91fbf5d904ba1d7a442846f886eea3
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