diff options
| author | Greg Kroah-Hartman <[email protected]> | 2020-09-23 13:43:45 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-09-25 14:33:59 +0000 |
| commit | d9f0d82f06c6775b3adb9e4925e27377bc87af54 (patch) | |
| tree | f5c864dfaff2be0a144908a7614be277a1e08f76 /drivers/usb/class/cdc-acm.c | |
| parent | sound: 6fire: move to use usb_control_msg_send() and usb_control_msg_recv() (diff) | |
| download | kernel-d9f0d82f06c6775b3adb9e4925e27377bc87af54.tar.gz kernel-d9f0d82f06c6775b3adb9e4925e27377bc87af54.zip | |
USB: legousbtower: use usb_control_msg_recv()
The usb_control_msg_recv() function can handle data on the stack, as
well as properly detecting short reads, so move to use that function
instead of the older usb_control_msg() call. This ends up removing a
lot of extra lines in the driver.
v2: change API of usb_control_msg_send()
Cc: Juergen Stuber <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/class/cdc-acm.c')
0 files changed, 0 insertions, 0 deletions
