OSDN Git Service

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

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-3-petko.manolov@konsulko.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/usb/rtl8150.c