USB: serial: io_edgeport: simplify and tighten endpoint check
authorJohan Hovold <johan@kernel.org>
Thu, 2 Mar 2017 11:51:23 +0000 (12:51 +0100)
committerJohan Hovold <johan@kernel.org>
Thu, 16 Mar 2017 09:33:43 +0000 (10:33 +0100)
commitfd0c883e597493d85d0800629798fc6fcce8e24e
tree9c0274cdac2dc15942fa32ceee3421bc3d4f37a2
parente7d6507e5ba7aa015b454f4871d4dec1e751d3ce
USB: serial: io_edgeport: simplify and tighten endpoint check

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

Also require the presence of a bulk-out endpoint, something which
prevents the driver from trying to send bulk messages over the control
pipe should a bulk-out endpoint be missing.

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