hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/include/linux/can/dev/peak_canfd.h
....@@ -1,17 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * CAN driver for PEAK System micro-CAN based adapters
34 *
45 * Copyright (C) 2003-2011 PEAK System-Technik GmbH
56 * 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.
157 */
168 #ifndef PUCAN_H
179 #define PUCAN_H
....@@ -197,7 +189,7 @@
197189 u8 client;
198190 __le16 flags;
199191 __le32 can_id;
200
- u8 d[0];
192
+ u8 d[];
201193 };
202194
203195 /* uCAN error types */
....@@ -274,7 +266,7 @@
274266 u8 client;
275267 __le16 flags;
276268 __le32 can_id;
277
- u8 d[0];
269
+ u8 d[];
278270 };
279271
280272 /* build the cmd opcode_channel field with respect to the correct endianness */