USB: core: clean up endpoint-descriptor parsing
authorJohan Hovold <johan@kernel.org>
Mon, 3 Feb 2020 15:38:30 +0000 (16:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Feb 2020 19:14:22 +0000 (11:14 -0800)
commit7f1b92a6a7f2b96a8647a488370b9a851433df77
tree7f4560bbc47fe20e5d95af97f81a6daf95dae751
parentbdd1b147b8026df0e4260b387026b251d888ed01
USB: core: clean up endpoint-descriptor parsing

Use the new usb-device pointer instead of back-casting when accessing
the struct usb_device when parsing endpoints.

Note that this introduces two lines that are longer than 80 chars on
purpose.

Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20200203153830.26394-4-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/config.c