diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-10-11 13:24:13 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2015-10-19 20:04:13 +0200 |
commit | 7cf6d08cafd67a34d0d78cd15baf64e214e050cb (patch) | |
tree | 72c50f7f6a543bca90cbda52d526f990bccbcdec /drivers/nfc/nxp-nci/core.c | |
parent | 893a84e8180dcc37a3b0fd19d04dbe6cbc6e33db (diff) | |
download | talos-obmc-linux-7cf6d08cafd67a34d0d78cd15baf64e214e050cb.tar.gz talos-obmc-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/core.c')
-rw-r--r-- | drivers/nfc/nxp-nci/core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/nfc/nxp-nci/core.c b/drivers/nfc/nxp-nci/core.c index 8979636d48ea..2e4b004a96aa 100644 --- a/drivers/nfc/nxp-nci/core.c +++ b/drivers/nfc/nxp-nci/core.c @@ -109,7 +109,8 @@ static struct nci_ops nxp_nci_ops = { }; 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) { struct nxp_nci_info *info; |