]> git.karo-electronics.de Git - linux-beck.git/commit
usb: serial: xsens_mt: always bind to interface number 1
authorFrans Klaver <frans.klaver@xsens.com>
Thu, 4 Sep 2014 07:25:37 +0000 (09:25 +0200)
committerJohan Hovold <johan@kernel.org>
Thu, 4 Sep 2014 09:18:26 +0000 (11:18 +0200)
commitadceac14166da8c466223a35ec59c4a4adeef976
tree6842550963576915c053cdf6caac802b2cc6b77e
parent7c13325380ee520ece4ddf517c6f6f895eb63f98
usb: serial: xsens_mt: always bind to interface number 1

Probe is testing if the current interface provides two bulk endpoints.
While this achieves the goal of only binding to the correct interface,
we already know we can find the device on interface number 1. Stop
checking the endpoints and just return successfully when interface
number 1 is probed.

Signed-off-by: Frans Klaver <frans.klaver@xsens.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/xsens_mt.c