| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2011 Instituto Nokia de Tecnologia |
|---|
| 3 | 4 | * Copyright (C) 2014 Marvell International Ltd. |
|---|
| .. | .. |
|---|
| 5 | 6 | * Authors: |
|---|
| 6 | 7 | * Lauro Ramos Venancio <lauro.venancio@openbossa.org> |
|---|
| 7 | 8 | * 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/>. |
|---|
| 21 | 9 | */ |
|---|
| 22 | 10 | |
|---|
| 23 | 11 | #ifndef __NET_NFC_H |
|---|
| .. | .. |
|---|
| 158 | 146 | u32 aid_len; |
|---|
| 159 | 147 | u8 aid[NFC_MAX_AID_LENGTH]; |
|---|
| 160 | 148 | u8 params_len; |
|---|
| 161 | | - u8 params[0]; |
|---|
| 149 | + u8 params[]; |
|---|
| 162 | 150 | } __packed; |
|---|
| 163 | 151 | |
|---|
| 164 | 152 | struct nfc_genl_data { |
|---|
| .. | .. |
|---|
| 278 | 266 | struct sk_buff *nfc_alloc_recv_skb(unsigned int size, gfp_t gfp); |
|---|
| 279 | 267 | |
|---|
| 280 | 268 | int nfc_set_remote_general_bytes(struct nfc_dev *dev, |
|---|
| 281 | | - u8 *gt, u8 gt_len); |
|---|
| 269 | + const u8 *gt, u8 gt_len); |
|---|
| 282 | 270 | u8 *nfc_get_local_general_bytes(struct nfc_dev *dev, size_t *gb_len); |
|---|
| 283 | 271 | |
|---|
| 284 | 272 | int nfc_fw_download_done(struct nfc_dev *dev, const char *firmware_name, |
|---|
| .. | .. |
|---|
| 292 | 280 | u8 comm_mode, u8 rf_mode); |
|---|
| 293 | 281 | |
|---|
| 294 | 282 | 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); |
|---|
| 296 | 284 | int nfc_tm_deactivated(struct nfc_dev *dev); |
|---|
| 297 | 285 | int nfc_tm_data_received(struct nfc_dev *dev, struct sk_buff *skb); |
|---|
| 298 | 286 | |
|---|