USB: uss720: add debug endpoint-type check
authorJohan Hovold <johan@kernel.org>
Fri, 17 Mar 2017 10:35:44 +0000 (11:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Mar 2017 12:54:03 +0000 (13:54 +0100)
commit9fdc1c6fdfa0bdf1854c3c06f002e6a76155fa2b
tree4a1e315b60b3459eb62a5fd82b976e8f0ca793b2
parentaac96ef9ed3aba10d97cbc5afaf79365701a2f14
USB: uss720: add debug endpoint-type check

Use the new endpoint helpers to lookup the interrupt-in endpoint,
and only print the corresponding debugging information in case it is
found.

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