.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * eeprom specific definitions for mac80211 Prism54 drivers |
---|
3 | 4 | * |
---|
.. | .. |
---|
13 | 14 | * |
---|
14 | 15 | * - islmvc driver |
---|
15 | 16 | * Copyright (C) 2001 Intersil Americas Inc. |
---|
16 | | - * |
---|
17 | | - * This program is free software; you can redistribute it and/or modify |
---|
18 | | - * it under the terms of the GNU General Public License version 2 as |
---|
19 | | - * published by the Free Software Foundation. |
---|
20 | 17 | */ |
---|
21 | 18 | |
---|
22 | 19 | #ifndef EEPROM_H |
---|
.. | .. |
---|
27 | 24 | struct pda_entry { |
---|
28 | 25 | __le16 len; /* includes both code and data */ |
---|
29 | 26 | __le16 code; |
---|
30 | | - u8 data[0]; |
---|
| 27 | + u8 data[]; |
---|
31 | 28 | } __packed; |
---|
32 | 29 | |
---|
33 | 30 | struct eeprom_pda_wrap { |
---|
.. | .. |
---|
35 | 32 | __le16 pad; |
---|
36 | 33 | __le16 len; |
---|
37 | 34 | __le32 arm_opcode; |
---|
38 | | - u8 data[0]; |
---|
| 35 | + u8 data[]; |
---|
39 | 36 | } __packed; |
---|
40 | 37 | |
---|
41 | 38 | struct p54_iq_autocal_entry { |
---|
.. | .. |
---|
90 | 87 | u8 channels; |
---|
91 | 88 | u8 points_per_channel; |
---|
92 | 89 | u8 padding; |
---|
93 | | - u8 data[0]; |
---|
| 90 | + u8 data[]; |
---|
94 | 91 | } __packed; |
---|
95 | 92 | |
---|
96 | 93 | struct pda_rssi_cal_ext_entry { |
---|
.. | .. |
---|
122 | 119 | __le16 entry_size; |
---|
123 | 120 | __le16 offset; |
---|
124 | 121 | __le16 len; |
---|
125 | | - u8 data[0]; |
---|
| 122 | + u8 data[]; |
---|
126 | 123 | } __packed; |
---|
127 | 124 | |
---|
128 | 125 | /* |
---|