]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: serial: aircable: use calc_num_endpoints to verify endpoints
authorJohan Hovold <johan@kernel.org>
Thu, 16 Mar 2017 16:13:36 +0000 (17:13 +0100)
committerJohan Hovold <johan@kernel.org>
Tue, 28 Mar 2017 09:00:08 +0000 (11:00 +0200)
commit5f391979c9aaa0ccecaf40f9b39359c584f7d615
tree90f334a66101c5a52e51cbf259103daf62e8b348
parent9d717271d6b5cbbe6aaa975648d9dcfe9b6e7b82
USB: serial: aircable: use calc_num_endpoints to verify endpoints

Use the calc_num_ports rather than probe callback to determine which
interface to bind to.

This allows us to remove some duplicate code.

Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/aircable.c