]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5b6ab298b546ae13c79481fc9f22b5b473dc996d
tree301b12f8d3031989f5206c8a10dbe59c967ba6c7
parentfb5a7459bc37e67ae78e96c9bec44fda6ece5561
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