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:11:40 +0000 (11:11 -0800)
commit4e467973ad083f10d5eee5c08429c63f2b5fd671
tree0bc43a18ee512705af9671dab6505e9b799aeb6b
parent7471b5f424c444727014ec6a72b6008e62fafef4
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