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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Dec 2018 08:48:00 +0000 (09:48 +0100)
commite2e233d1a9869e5da52a4b33a020862d8eed502f
tree3807d2b5cd198b425f61ca51fa15c278d678072d
parent12a85e058d8cf767061f704dcc0b9f850378ddb1
Input: xpad - remove needless bulk out URB used for LED setup

[ Upstream commit a306a65f46acb040d208523592a2d34f67d47a61 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/joystick/xpad.c