forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/net/wireless/zydas/zd1211rw/zd_usb.h
....@@ -1,20 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /* ZD1211 USB-WLAN driver for Linux
23 *
34 * Copyright (C) 2005-2007 Ulrich Kunitz <kune@deine-taler.de>
45 * Copyright (C) 2006-2007 Daniel Drake <dsd@gentoo.org>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
186 */
197
208 #ifndef _ZD_USB_H
....@@ -81,7 +69,7 @@
8169
8270 struct usb_req_read_regs {
8371 __le16 id;
84
- __le16 addr[0];
72
+ __le16 addr[];
8573 } __packed;
8674
8775 struct reg_data {
....@@ -91,7 +79,7 @@
9179
9280 struct usb_req_write_regs {
9381 __le16 id;
94
- struct reg_data reg_writes[0];
82
+ struct reg_data reg_writes[];
9583 } __packed;
9684
9785 enum {
....@@ -107,7 +95,7 @@
10795 /* 2: other (default) */
10896 __le16 bits;
10997 /* RF2595: 24 */
110
- __le16 bit_values[0];
98
+ __le16 bit_values[];
11199 /* (ZD_CR203 & ~(RF_IF_LE | RF_CLK | RF_DATA)) | (bit ? RF_DATA : 0) */
112100 } __packed;
113101
....@@ -130,7 +118,7 @@
130118
131119 struct usb_int_regs {
132120 struct usb_int_header hdr;
133
- struct reg_data regs[0];
121
+ struct reg_data regs[];
134122 } __packed;
135123
136124 struct usb_int_retry_fail {