hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/net/nfc/llcp.h
....@@ -1,18 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Copyright (C) 2011 Intel Corporation. All rights reserved.
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License as published by
6
- * the Free Software Foundation; either version 2 of the License, or
7
- * (at your option) any later version.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU General Public License
15
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
164 */
175
186 enum llcp_state {
....@@ -214,7 +202,6 @@
214202 void nfc_llcp_sock_unlink(struct llcp_sock_list *l, struct sock *s);
215203 void nfc_llcp_socket_remote_param_init(struct nfc_llcp_sock *sock);
216204 struct nfc_llcp_local *nfc_llcp_find_local(struct nfc_dev *dev);
217
-struct nfc_llcp_local *nfc_llcp_local_get(struct nfc_llcp_local *local);
218205 int nfc_llcp_local_put(struct nfc_llcp_local *local);
219206 u8 nfc_llcp_get_sdp_ssap(struct nfc_llcp_local *local,
220207 struct nfc_llcp_sock *sock);
....@@ -233,15 +220,15 @@
233220
234221 /* TLV API */
235222 int nfc_llcp_parse_gb_tlv(struct nfc_llcp_local *local,
236
- u8 *tlv_array, u16 tlv_array_len);
223
+ const u8 *tlv_array, u16 tlv_array_len);
237224 int nfc_llcp_parse_connection_tlv(struct nfc_llcp_sock *sock,
238
- u8 *tlv_array, u16 tlv_array_len);
225
+ const u8 *tlv_array, u16 tlv_array_len);
239226
240227 /* Commands API */
241228 void nfc_llcp_recv(void *data, struct sk_buff *skb, int err);
242
-u8 *nfc_llcp_build_tlv(u8 type, u8 *value, u8 value_length, u8 *tlv_length);
229
+u8 *nfc_llcp_build_tlv(u8 type, const u8 *value, u8 value_length, u8 *tlv_length);
243230 struct nfc_llcp_sdp_tlv *nfc_llcp_build_sdres_tlv(u8 tid, u8 sap);
244
-struct nfc_llcp_sdp_tlv *nfc_llcp_build_sdreq_tlv(u8 tid, char *uri,
231
+struct nfc_llcp_sdp_tlv *nfc_llcp_build_sdreq_tlv(u8 tid, const char *uri,
245232 size_t uri_len);
246233 void nfc_llcp_free_sdp_tlv(struct nfc_llcp_sdp_tlv *sdp);
247234 void nfc_llcp_free_sdp_tlv_list(struct hlist_head *sdp_head);