hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/include/net/nfc/nci.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * The NFC Controller Interface is the communication protocol between an
34 * NFC Controller (NFCC) and a Device Host (DH).
....@@ -10,19 +11,6 @@
1011 * Acknowledgements:
1112 * This file is based on hci.h, which was written
1213 * by Maxim Krasnyansky.
13
- *
14
- * This program is free software; you can redistribute it and/or modify
15
- * it under the terms of the GNU General Public License version 2
16
- * as published by the Free Software Foundation
17
- *
18
- * This program is distributed in the hope that it will be useful,
19
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
- * GNU General Public License for more details.
22
- *
23
- * You should have received a copy of the GNU General Public License
24
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
25
- *
2614 */
2715
2816 #ifndef __NCI_H
....@@ -256,13 +244,13 @@
256244 struct core_conn_create_dest_spec_params {
257245 __u8 type;
258246 __u8 length;
259
- __u8 value[0];
247
+ __u8 value[];
260248 } __packed;
261249
262250 struct nci_core_conn_create_cmd {
263251 __u8 destination_type;
264252 __u8 number_destination_params;
265
- struct core_conn_create_dest_spec_params params[0];
253
+ struct core_conn_create_dest_spec_params params[];
266254 } __packed;
267255
268256 #define NCI_OP_CORE_CONN_CLOSE_CMD nci_opcode_pack(NCI_GID_CORE, 0x05)
....@@ -333,7 +321,7 @@
333321 __u8 status;
334322 __le32 nfcc_features;
335323 __u8 num_supported_rf_interfaces;
336
- __u8 supported_rf_interfaces[0]; /* variable size array */
324
+ __u8 supported_rf_interfaces[]; /* variable size array */
337325 /* continuted in nci_core_init_rsp_2 */
338326 } __packed;
339327
....@@ -350,7 +338,7 @@
350338 struct nci_core_set_config_rsp {
351339 __u8 status;
352340 __u8 num_params;
353
- __u8 params_id[0]; /* variable size array */
341
+ __u8 params_id[]; /* variable size array */
354342 } __packed;
355343
356344 #define NCI_OP_CORE_CONN_CREATE_RSP nci_opcode_pack(NCI_GID_CORE, 0x04)
....@@ -513,18 +501,18 @@
513501 __u8 nfcee_id;
514502 __u8 trigger;
515503 __u8 supported_data_length;
516
- __u8 supported_data[0];
504
+ __u8 supported_data[];
517505 } __packed;
518506
519507 #define NCI_OP_NFCEE_DISCOVER_NTF nci_opcode_pack(NCI_GID_NFCEE_MGMT, 0x00)
520508 struct nci_nfcee_supported_protocol {
521509 __u8 num_protocol;
522
- __u8 supported_protocol[0];
510
+ __u8 supported_protocol[];
523511 } __packed;
524512
525513 struct nci_nfcee_information_tlv {
526514 __u8 num_tlv;
527
- __u8 information_tlv[0];
515
+ __u8 information_tlv[];
528516 } __packed;
529517
530518 struct nci_nfcee_discover_ntf {