USB: serial: add endpoint sanity check to core
authorJohan Hovold <johan@kernel.org>
Thu, 2 Mar 2017 11:51:19 +0000 (12:51 +0100)
committerJohan Hovold <johan@kernel.org>
Thu, 16 Mar 2017 09:33:41 +0000 (10:33 +0100)
commit92e6b2c675e1d247317ec41a078f49aaade7f716
treef46b544b30899fa6c0f160b28987cd85db53a845
parent8520ac0d70d6c1709bf6768cb79f3b75115def09
USB: serial: add endpoint sanity check to core

Allow drivers to specify a minimum number of endpoints per type, which
USB serial core will verify after subdriver probe has returned (where
the current alternate setting may have been changed).

Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/usb-serial.c
include/linux/usb/serial.h