USB: iowarrior: refactor endpoint retrieval
authorJohan Hovold <johan@kernel.org>
Fri, 17 Mar 2017 10:35:39 +0000 (11:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Mar 2017 12:53:52 +0000 (13:53 +0100)
commit920df8d7facde29e4124cae95ebb8de1661e17e5
tree1921f1b90d6a08ce083f48c6482743c92f3d7728
parentfa38442eaac1f5a3ba883c91bdc772e77d35bf27
USB: iowarrior: refactor endpoint retrieval

Use the new endpoint helpers to lookup the required interrupt-in
endpoint.

IOWarror56 devices also requires an interrupt-out endpoint, which is
looked up in a second call.

Note that the descriptors are searched in reverse order to avoid any
regressions.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/iowarrior.c