Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 49f4ff2d authored by Johan Hovold's avatar Johan Hovold
Browse files

USB: serial: io_ti: use calc_num_endpoints to verify endpoints



Use the calc_num_ports rather than attach callback to verify that the
required endpoints are present when in download mode.

This avoids allocating port resources for interfaces that won't be bound.

Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent 204cc473
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment