diff options
author | Johan Hovold <johan@kernel.org> | 2017-03-16 17:13:40 +0100 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2017-03-28 11:00:09 +0200 |
commit | 204cc473bc896134870fda21cd279774b3ead024 (patch) | |
tree | 55b1f4a471cff134afc698e74b5705b40aaf0193 /drivers/usb/serial/io_ti.c | |
parent | 03b72aecadc2d7b0e8f200ec70b853e39a7e55da (diff) | |
download | op-kernel-dev-204cc473bc896134870fda21cd279774b3ead024.zip op-kernel-dev-204cc473bc896134870fda21cd279774b3ead024.tar.gz |
USB: serial: ipaq: always register a single port
Use the calc_num_ports callback to ignore unused endpoints.
The driver binds to any interface with at least one bulk-in and one
bulk-out endpoint, but some devices can have three or more endpoints of
which only either the first or second pair of endpoints is needed.
This avoids allocating resources for unused endpoints, and specifically
a port is no longer registered for the unused first endpoint pair when
there are more than three endpoints.
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/io_ti.c')
0 files changed, 0 insertions, 0 deletions