summaryrefslogtreecommitdiffstats
path: root/drivers/nfc/nxp-nci/nxp-nci.h
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2015-10-11 13:24:13 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2015-10-19 20:04:13 +0200
commit7cf6d08cafd67a34d0d78cd15baf64e214e050cb (patch)
tree72c50f7f6a543bca90cbda52d526f990bccbcdec /drivers/nfc/nxp-nci/nxp-nci.h
parentNFC: nfcmrvl: Auto-select core module (diff)
downloadlinux-7cf6d08cafd67a34d0d78cd15baf64e214e050cb.tar.xz
linux-7cf6d08cafd67a34d0d78cd15baf64e214e050cb.zip
NFC: nxp-nci: constify nxp_nci_phy_ops structure
The only instance of a nxp_nci_phy_ops structure is never modified. Thus the declaration of the structure and all references to the structure type can be made const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc/nxp-nci/nxp-nci.h')
-rw-r--r--drivers/nfc/nxp-nci/nxp-nci.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/nfc/nxp-nci/nxp-nci.h b/drivers/nfc/nxp-nci/nxp-nci.h
index f1fecc4e2457..20408cbff4f1 100644
--- a/drivers/nfc/nxp-nci/nxp-nci.h
+++ b/drivers/nfc/nxp-nci/nxp-nci.h
@@ -68,7 +68,7 @@ struct nxp_nci_info {
enum nxp_nci_mode mode;
- struct nxp_nci_phy_ops *phy_ops;
+ const struct nxp_nci_phy_ops *phy_ops;
unsigned int max_payload;
struct mutex info_lock;
@@ -82,7 +82,8 @@ void nxp_nci_fw_recv_frame(struct nci_dev *ndev, struct sk_buff *skb);
void nxp_nci_fw_work_complete(struct nxp_nci_info *info, int result);
int nxp_nci_probe(void *phy_id, struct device *pdev,
- struct nxp_nci_phy_ops *phy_ops, unsigned int max_payload,
+ const struct nxp_nci_phy_ops *phy_ops,
+ unsigned int max_payload,
struct nci_dev **ndev);
void nxp_nci_remove(struct nci_dev *ndev);