.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * CAN driver for PEAK System micro-CAN based adapters |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2003-2011 PEAK System-Technik GmbH |
---|
5 | 6 | * Copyright (C) 2011-2013 Stephane Grosjean <s.grosjean@peak-system.com> |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or modify it |
---|
8 | | - * under the terms of the GNU General Public License as published |
---|
9 | | - * by the Free Software Foundation; version 2 of the License. |
---|
10 | | - * |
---|
11 | | - * This program is distributed in the hope that it will be useful, but |
---|
12 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
14 | | - * General Public License for more details. |
---|
15 | 7 | */ |
---|
16 | 8 | #ifndef PUCAN_H |
---|
17 | 9 | #define PUCAN_H |
---|
.. | .. |
---|
197 | 189 | u8 client; |
---|
198 | 190 | __le16 flags; |
---|
199 | 191 | __le32 can_id; |
---|
200 | | - u8 d[0]; |
---|
| 192 | + u8 d[]; |
---|
201 | 193 | }; |
---|
202 | 194 | |
---|
203 | 195 | /* uCAN error types */ |
---|
.. | .. |
---|
274 | 266 | u8 client; |
---|
275 | 267 | __le16 flags; |
---|
276 | 268 | __le32 can_id; |
---|
277 | | - u8 d[0]; |
---|
| 269 | + u8 d[]; |
---|
278 | 270 | }; |
---|
279 | 271 | |
---|
280 | 272 | /* build the cmd opcode_channel field with respect to the correct endianness */ |
---|