can: kvaser_usb: fix usb endpoints detection
authorOlivier Sobrie <olivier@sobrie.be>
Sun, 27 Oct 2013 21:07:53 +0000 (22:07 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 31 Oct 2013 19:20:23 +0000 (20:20 +0100)
commit896e23bd04ea50a146dffd342e2f96180f0812a5
treec6bb44a17c1e21b09106dc73a54d16affb4beb79
parent5d0f801a2ccec3b1fdabc3392c8d99ed0413d216
can: kvaser_usb: fix usb endpoints detection

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.

Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Olivier Sobrie <olivier@sobrie.be>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/kvaser_usb.c