summaryrefslogtreecommitdiff
path: root/net/nfc/core.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>2021-07-30 17:42:00 +0300
committerJakub Kicinski <kuba@kernel.org>2021-07-30 18:22:52 +0300
commitf2479c0a22948c5998938fa5bb9d98f9931791b7 (patch)
tree3dd7661d901795ddc7135577d310fbbc2ce31576 /net/nfc/core.c
parent3df40eb3a2ea58bf404a38f15a7a2768e4762cb0 (diff)
downloadlinux-f2479c0a22948c5998938fa5bb9d98f9931791b7.tar.xz
nfc: constify local pointer variables
Few pointers to struct nfc_target and struct nfc_se can be made const. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/nfc/core.c')
-rw-r--r--net/nfc/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/core.c b/net/nfc/core.c
index 08182e209144..3c645c1d99c9 100644
--- a/net/nfc/core.c
+++ b/net/nfc/core.c
@@ -824,7 +824,7 @@ EXPORT_SYMBOL(nfc_targets_found);
*/
int nfc_target_lost(struct nfc_dev *dev, u32 target_idx)
{
- struct nfc_target *tg;
+ const struct nfc_target *tg;
int i;
pr_debug("dev_name %s n_target %d\n", dev_name(&dev->dev), target_idx);