[media] fix mceusb endpoint type identification/handling
authorMatt DeVillier <matt.devillier@gmail.com>
Thu, 24 Apr 2014 14:16:31 +0000 (11:16 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 25 May 2014 18:49:35 +0000 (15:49 -0300)
commit0cacb46ace1f433f0ab02af10686f6dc50b5d268
treee285cc455ce30780dd67c2ff1bae4c87e83b84ad
parent44f83144ca81fa8cf1c2114afe01c4bedae40fae
[media] fix mceusb endpoint type identification/handling

Change the I/O endpoint handling of the mceusb driver to respect the endpoint
type reported by device (bulk/interrupt), rather than treating all endpoints
as type interrupt, which breaks devices using bulk endpoints when connected
to a xhci controller.  Accordingly, change the function calls to initialize
an endpoint's transfer pipe and urb handlers to use the correct function based
on the endpoint type.

[m.chehab@samsung.com: Fix merge conflicts and compilation breakage]
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Tested-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/rc/mceusb.c