hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/include/net/nfc/nfc.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Copyright (C) 2011 Instituto Nokia de Tecnologia
34 * Copyright (C) 2014 Marvell International Ltd.
....@@ -5,19 +6,6 @@
56 * Authors:
67 * Lauro Ramos Venancio <lauro.venancio@openbossa.org>
78 * Aloisio Almeida Jr <aloisio.almeida@openbossa.org>
8
- *
9
- * This program is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License as published by
11
- * the Free Software Foundation; either version 2 of the License, or
12
- * (at your option) any later version.
13
- *
14
- * This program is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- * GNU General Public License for more details.
18
- *
19
- * You should have received a copy of the GNU General Public License
20
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
219 */
2210
2311 #ifndef __NET_NFC_H
....@@ -158,7 +146,7 @@
158146 u32 aid_len;
159147 u8 aid[NFC_MAX_AID_LENGTH];
160148 u8 params_len;
161
- u8 params[0];
149
+ u8 params[];
162150 } __packed;
163151
164152 struct nfc_genl_data {
....@@ -278,7 +266,7 @@
278266 struct sk_buff *nfc_alloc_recv_skb(unsigned int size, gfp_t gfp);
279267
280268 int nfc_set_remote_general_bytes(struct nfc_dev *dev,
281
- u8 *gt, u8 gt_len);
269
+ const u8 *gt, u8 gt_len);
282270 u8 *nfc_get_local_general_bytes(struct nfc_dev *dev, size_t *gb_len);
283271
284272 int nfc_fw_download_done(struct nfc_dev *dev, const char *firmware_name,
....@@ -292,7 +280,7 @@
292280 u8 comm_mode, u8 rf_mode);
293281
294282 int nfc_tm_activated(struct nfc_dev *dev, u32 protocol, u8 comm_mode,
295
- u8 *gb, size_t gb_len);
283
+ const u8 *gb, size_t gb_len);
296284 int nfc_tm_deactivated(struct nfc_dev *dev);
297285 int nfc_tm_data_received(struct nfc_dev *dev, struct sk_buff *skb);
298286