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 18:42:14 +0000 (10:42 -0800)
commit4b43e0db0727d657864442c3c335cf04bc4c8ae7
tree03d66ee4f30d85591c215fb3e6044642b3dee989
parent5e13a42e913a83bbff33cf919d575778e8e76df7
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