USB: serial: sierra: clean up special-interface handling
authorJohan Hovold <johan@kernel.org>
Mon, 13 Jul 2020 15:39:36 +0000 (17:39 +0200)
committerJohan Hovold <johan@kernel.org>
Tue, 14 Jul 2020 09:50:57 +0000 (11:50 +0200)
commite0439cd97573f1c7c6bf98e7a6d63de34daeaf8a
tree357497e47bcef49e43d0a3a80ac01639d818ed10
parent16045babc7985cef48b355540d11bd942220931d
USB: serial: sierra: clean up special-interface handling

Clean up the handling of special interfaces that either should be
ignored or that need a larger number of URBs.

Commit 66f092ed3b94 ("USB: serial: sierra: unify quirk handling logic")
replaced the previous is_blacklisted() and is_highmemory() helpers with
a single is_quirk() helper which made it even harder to understand what
the interface lists were used for.

Rename the interface-list struct, its members and the interface-lookup
helper and restructure the code somewhat in order to make it more
self-explanatory.

Link: https://lore.kernel.org/r/20200713153936.18032-1-johan@kernel.org
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/sierra.c