Skip to content
Commit fb58cf4f authored by Petko Manolov's avatar Petko Manolov Committed by Greg Kroah-Hartman
Browse files

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: default avatarPetko Manolov <petko.manolov@konsulko.com>
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
Link: https://lore.kernel.org/r/20200927124909.16380-2-petko.manolov@konsulko.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b2a0f274
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment