hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/net/usb/plusb.c
....@@ -1,19 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * PL-2301/2302 USB host-to-host link cables
34 * Copyright (C) 2000-2005 by David Brownell
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
175 */
186
197 // #define DEBUG // error path messages, extra info
....@@ -69,9 +57,7 @@
6957 static inline int
7058 pl_vendor_req(struct usbnet *dev, u8 req, u8 val, u8 index)
7159 {
72
- return usbnet_read_cmd(dev, req,
73
- USB_DIR_IN | USB_TYPE_VENDOR |
74
- USB_RECIP_DEVICE,
60
+ return usbnet_write_cmd(dev, req, USB_TYPE_VENDOR | USB_RECIP_DEVICE,
7561 val, index, NULL, 0);
7662 }
7763