Input: xpad - use proper endpoint type
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Nov 2014 08:38:17 +0000 (00:38 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Dec 2014 23:55:37 +0000 (15:55 -0800)
commit76e2a479d387ff9777b273a1e8af3120c1c6ba48
tree11a0c6a17cd63555ddf7ff9a3ccde8dd2788905e
parent65b6e8b7a85ddf5ebece042f346eaea2e53686cf
Input: xpad - use proper endpoint type

commit a1f9a4072655843fc03186acbad65990cc05dd2d upstream.

The xpad wireless endpoint is not a bulk endpoint on my devices, but
rather an interrupt one, so the USB core complains when it is submitted.
I'm guessing that the author really did mean that this should be an
interrupt urb, but as there are a zillion different xpad devices out
there, let's cover out bases and handle both bulk and interrupt
endpoints just as easily.

Signed-off-by: "Pierre-Loup A. Griffais" <pgriffais@valvesoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/joystick/xpad.c