.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * PL-2301/2302 USB host-to-host link cables |
---|
3 | 4 | * 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/>. |
---|
17 | 5 | */ |
---|
18 | 6 | |
---|
19 | 7 | // #define DEBUG // error path messages, extra info |
---|
.. | .. |
---|
69 | 57 | static inline int |
---|
70 | 58 | pl_vendor_req(struct usbnet *dev, u8 req, u8 val, u8 index) |
---|
71 | 59 | { |
---|
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, |
---|
75 | 61 | val, index, NULL, 0); |
---|
76 | 62 | } |
---|
77 | 63 | |
---|