.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* ZD1211 USB-WLAN driver for Linux |
---|
2 | 3 | * |
---|
3 | 4 | * Copyright (C) 2005-2007 Ulrich Kunitz <kune@deine-taler.de> |
---|
4 | 5 | * 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/>. |
---|
18 | 6 | */ |
---|
19 | 7 | |
---|
20 | 8 | #ifndef _ZD_USB_H |
---|
.. | .. |
---|
81 | 69 | |
---|
82 | 70 | struct usb_req_read_regs { |
---|
83 | 71 | __le16 id; |
---|
84 | | - __le16 addr[0]; |
---|
| 72 | + __le16 addr[]; |
---|
85 | 73 | } __packed; |
---|
86 | 74 | |
---|
87 | 75 | struct reg_data { |
---|
.. | .. |
---|
91 | 79 | |
---|
92 | 80 | struct usb_req_write_regs { |
---|
93 | 81 | __le16 id; |
---|
94 | | - struct reg_data reg_writes[0]; |
---|
| 82 | + struct reg_data reg_writes[]; |
---|
95 | 83 | } __packed; |
---|
96 | 84 | |
---|
97 | 85 | enum { |
---|
.. | .. |
---|
107 | 95 | /* 2: other (default) */ |
---|
108 | 96 | __le16 bits; |
---|
109 | 97 | /* RF2595: 24 */ |
---|
110 | | - __le16 bit_values[0]; |
---|
| 98 | + __le16 bit_values[]; |
---|
111 | 99 | /* (ZD_CR203 & ~(RF_IF_LE | RF_CLK | RF_DATA)) | (bit ? RF_DATA : 0) */ |
---|
112 | 100 | } __packed; |
---|
113 | 101 | |
---|
.. | .. |
---|
130 | 118 | |
---|
131 | 119 | struct usb_int_regs { |
---|
132 | 120 | struct usb_int_header hdr; |
---|
133 | | - struct reg_data regs[0]; |
---|
| 121 | + struct reg_data regs[]; |
---|
134 | 122 | } __packed; |
---|
135 | 123 | |
---|
136 | 124 | struct usb_int_retry_fail { |
---|