summaryrefslogtreecommitdiffstats
path: root/drivers/nfc/microread/microread.h
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>2021-07-29 12:40:20 +0200
committerDavid S. Miller <davem@davemloft.net>2021-07-29 13:28:03 +0200
commita751449f8b477e0e1d97f778ed97ae9f6576b690 (patch)
treee4ae44bcda01ca970cb4668dce8135b7cab0d5fd /drivers/nfc/microread/microread.h
parentnfc: fdp: constify several pointers (diff)
downloadlinux-a751449f8b477e0e1d97f778ed97ae9f6576b690.tar.xz
linux-a751449f8b477e0e1d97f778ed97ae9f6576b690.zip
nfc: microread: constify several pointers
Several functions do not modify pointed data so arguments and local variables can be const for correctness and safety. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/nfc/microread/microread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/microread/microread.h b/drivers/nfc/microread/microread.h
index 76152d7aa53c..2ee7ccfa22dd 100644
--- a/drivers/nfc/microread/microread.h
+++ b/drivers/nfc/microread/microread.h
@@ -11,7 +11,7 @@
#define DRIVER_DESC "NFC driver for microread"
int microread_probe(void *phy_id, const struct nfc_phy_ops *phy_ops,
- char *llc_name, int phy_headroom, int phy_tailroom,
+ const char *llc_name, int phy_headroom, int phy_tailroom,
int phy_payload, struct nfc_hci_dev **hdev);
void microread_remove(struct nfc_hci_dev *hdev);