USB: appledisplay: refactor endpoint retrieval
authorJohan Hovold <johan@kernel.org>
Fri, 17 Mar 2017 10:35:35 +0000 (11:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Mar 2017 12:53:16 +0000 (13:53 +0100)
commitc77b8855c6dadb97b1614ecee844c88b621d5493
treed60a087a0deac6c2d09b6d2d8579b68048a000b8
parente53e0342da4bd077ba3ef325685d7dd57fb8c4d1
USB: appledisplay: refactor endpoint retrieval

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

Note that the default retval was never used.

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