can: kvaser_usb: fix usb endpoints detection
authorOlivier Sobrie <olivier@sobrie.be>
Sun, 27 Oct 2013 21:07:53 +0000 (22:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Nov 2013 19:27:52 +0000 (11:27 -0800)
commit5a9007740a12827ead4b6131782d731986831a18
tree3901b08f8b97d18d3cf19c762f08f04923de7d72
parent80064f1a10da8351399d6708ad315e0abc24345d
can: kvaser_usb: fix usb endpoints detection

commit 896e23bd04ea50a146dffd342e2f96180f0812a5 upstream.

Some devices, like the Kvaser Memorator Professional, have several bulk in
endpoints. Only the first one found must be used by the driver. The same holds
for the bulk out endpoint. The official Kvaser driver (leaf) was used as
reference for this patch.

Signed-off-by: Olivier Sobrie <olivier@sobrie.be>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/usb/kvaser_usb.c