diff options
author | Petko Manolov <petko.manolov@konsulko.com> | 2020-09-27 15:49:08 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-10-02 11:30:10 +0200 |
commit | fb58cf4f2881eeb21b2a5997871a1678772b746d (patch) | |
tree | 7e57fb84abb80d3034dd4c69d80f94c521723016 /drivers/usb/class/cdc-wdm.c | |
parent | b2a0f274e3f7e5ad3b5546e4293ca1cf25126f51 (diff) | |
download | linux-fb58cf4f2881eeb21b2a5997871a1678772b746d.tar.gz linux-fb58cf4f2881eeb21b2a5997871a1678772b746d.tar.bz2 linux-fb58cf4f2881eeb21b2a5997871a1678772b746d.zip |
net: pegasus: Use the new usb control message API.
The old usb_control_msg() let the caller handle the error and also did not
account for partial reads. Since these are now considered harmful, move the
driver over to usb_control_msg_recv/send() calls.
Added small note about why set_registers() can't be used to substitute
set_register().
Signed-off-by: Petko Manolov <petko.manolov@konsulko.com>
Acked-by: David S. Miller <davem@davemloft.net>
Link: https://lore.kernel.org/r/20200927124909.16380-2-petko.manolov@konsulko.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/class/cdc-wdm.c')
0 files changed, 0 insertions, 0 deletions