]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: serial: f81534: use calc_num_endpoints to verify endpoints
authorJohan Hovold <johan@kernel.org>
Thu, 16 Mar 2017 16:13:37 +0000 (17:13 +0100)
committerJohan Hovold <johan@kernel.org>
Tue, 28 Mar 2017 09:00:08 +0000 (11:00 +0200)
commitcac4cea513c7193512a58da4b1bfa46c04246546
treef8ddea63552c14baa0fbb4b12f1d9a8b53273656
parent5f391979c9aaa0ccecaf40f9b39359c584f7d615
USB: serial: f81534: use calc_num_endpoints to verify endpoints

Simplify the endpoint sanity check by letting core verify that the
required endpoints are present and moving the max-packet check to
calc_num_ports.

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