Input: xpad - use proper endpoint type
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Nov 2014 08:38:17 +0000 (00:38 -0800)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 14 Dec 2014 16:24:00 +0000 (16:24 +0000)
commit5debff3f190462800f5590682b93bfbe0084cb4a
tree25176b021ed68d936c9667630c3367752984207c
parent7eac65da05f5ae88723a144f9e28de8637c707bc
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: Ben Hutchings <ben@decadent.org.uk>
drivers/input/joystick/xpad.c