提交 7cdd2487 编写于 作者: M Ming Lei 提交者: David S. Miller

usbnet: plusb: apply introduced usb command APIs

Acked-by: NOliver Neukum <oneukum@suse.de>
Signed-off-by: NMing Lei <ming.lei@canonical.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 5ffbe4da
...@@ -71,13 +71,10 @@ ...@@ -71,13 +71,10 @@
static inline int static inline int
pl_vendor_req(struct usbnet *dev, u8 req, u8 val, u8 index) pl_vendor_req(struct usbnet *dev, u8 req, u8 val, u8 index)
{ {
return usb_control_msg(dev->udev, return usbnet_read_cmd(dev, req,
usb_rcvctrlpipe(dev->udev, 0), USB_DIR_IN | USB_TYPE_VENDOR |
req, USB_RECIP_DEVICE,
USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_DEVICE, val, index, NULL, 0);
val, index,
NULL, 0,
USB_CTRL_GET_TIMEOUT);
} }
static inline int static inline int
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册