USB: serial: mos7720: simplify endpoint check
authorJohan Hovold <johan@kernel.org>
Thu, 2 Mar 2017 11:51:27 +0000 (12:51 +0100)
committerJohan Hovold <johan@kernel.org>
Thu, 16 Mar 2017 09:33:44 +0000 (10:33 +0100)
commit206ff831bebb816087da29a34fcff5bd603602e1
tree37f09a7e82d27c72eed82857b50136db5e8f2373
parent35194572b4ede8b021d4c70c8785cd4d5c3fae0a
USB: serial: mos7720: simplify endpoint check

Simplify the endpoint sanity check by letting core verify that the
required endpoints are present.

Note that the driver expects two bulk-endpoint pairs also for mcs7715
devices for which only one serial port is registered.

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