USB: serial: refactor endpoint classification
authorJohan Hovold <johan@kernel.org>
Tue, 30 Mar 2021 14:38:18 +0000 (16:38 +0200)
committerJohan Hovold <johan@kernel.org>
Thu, 1 Apr 2021 08:04:00 +0000 (10:04 +0200)
commitb3431093ad05c5242d87fcf94bddc7a84a2134f5
tree301b12f8d3031989f5206c8a10dbe59c967ba6c7
parent53366a9f917a8601dcad0fd9768d5956cd2f99a6
USB: serial: refactor endpoint classification

Refactor endpoint classification and replace the build-time
endpoint-array sanity checks with runtime checks in preparation for
handling endpoints from a sibling interface.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/usb-serial.c