hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/net/nfc/digital_dep.c
....@@ -1,16 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * NFC Digital Protocol stack
34 * Copyright (c) 2013, Intel Corporation.
4
- *
5
- * This program is free software; you can redistribute it and/or modify it
6
- * under the terms and conditions of the GNU General Public License,
7
- * version 2, as published by the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope it will be useful, but WITHOUT
10
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12
- * more details.
13
- *
145 */
156
167 #define pr_fmt(fmt) "digital: %s: " fmt, __func__
....@@ -47,9 +38,6 @@
4738
4839 #define DIGITAL_GB_BIT 0x02
4940
50
-#define DIGITAL_NFC_DEP_REQ_RES_HEADROOM 2 /* SoD: [SB (NFC-A)] + LEN */
51
-#define DIGITAL_NFC_DEP_REQ_RES_TAILROOM 2 /* EoD: 2-byte CRC */
52
-
5341 #define DIGITAL_NFC_DEP_PFB_TYPE(pfb) ((pfb) & 0xE0)
5442
5543 #define DIGITAL_NFC_DEP_PFB_TIMEOUT_BIT 0x10
....@@ -80,7 +68,7 @@
8068 u8 bs;
8169 u8 br;
8270 u8 pp;
83
- u8 gb[0];
71
+ u8 gb[];
8472 } __packed;
8573
8674 struct digital_atr_res {
....@@ -92,7 +80,7 @@
9280 u8 br;
9381 u8 to;
9482 u8 pp;
95
- u8 gb[0];
83
+ u8 gb[];
9684 } __packed;
9785
9886 struct digital_psl_req {