diff options
author | Vincent Mailhol <mailhol.vincent@wanadoo.fr> | 2022-03-17 12:55:14 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-23 10:33:53 +0200 |
commit | bdddc253b0938a0063798881d1f6a971ea1d8943 (patch) | |
tree | 3975c01aed8778f9680d52d428ea46fc307b1846 /tools/usb/testusb.c | |
parent | 2ddf7617d568fdcbd3cc454bb4849fa6d3398c86 (diff) | |
download | linux-bdddc253b0938a0063798881d1f6a971ea1d8943.tar.bz2 |
usb: rework usb_maxpacket() using usb_pipe_endpoint()
Rework the body of usb_maxpacket() and just rely on the
usb_pipe_endpoint() helper function to retrieve the host endpoint
instead of doing it by hand.
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/r/20220317035514.6378-10-mailhol.vincent@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/usb/testusb.c')
0 files changed, 0 insertions, 0 deletions