]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: ldusb: refactor endpoint retrieval
authorJohan Hovold <johan@kernel.org>
Fri, 17 Mar 2017 10:35:40 +0000 (11:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Mar 2017 12:53:53 +0000 (13:53 +0100)
commit2707ca16c2d400c8e2e619944470fb72ea96489f
tree9fcf1fbefc6b79aeb679fcacceecc55db29af7f9
parent920df8d7facde29e4124cae95ebb8de1661e17e5
USB: ldusb: refactor endpoint retrieval

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

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/ldusb.c