net: pegasus: Use the new usb control message API.
authorPetko Manolov <petko.manolov@konsulko.com>
Sun, 27 Sep 2020 12:49:08 +0000 (15:49 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Oct 2020 09:30:10 +0000 (11:30 +0200)
commitfb58cf4f2881eeb21b2a5997871a1678772b746d
tree7e57fb84abb80d3034dd4c69d80f94c521723016
parentb2a0f274e3f7e5ad3b5546e4293ca1cf25126f51
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>
drivers/net/usb/pegasus.c