summaryrefslogtreecommitdiffstats
path: root/drivers/nfc/s3fwrn5/core.c
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2015-11-13 13:04:41 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2015-12-20 18:32:39 +0100
commitc6b5df0daf0ecbb986420ea7342a6bd9c71619a9 (patch)
tree1974dbef27212c8aa2df799ca4133be17d38cd7b /drivers/nfc/s3fwrn5/core.c
parent59df9bb25cf8a13443b8335a7a9013817c050b88 (diff)
downloadlinux-c6b5df0daf0ecbb986420ea7342a6bd9c71619a9.tar.gz
linux-c6b5df0daf0ecbb986420ea7342a6bd9c71619a9.tar.bz2
linux-c6b5df0daf0ecbb986420ea7342a6bd9c71619a9.zip
nfc: s3fwrn5: constify s3fwrn5_phy_ops structures
The s3fwrn5_phy_ops structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Acked-by: Robert Baldyga <r.baldyga@samsung.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc/s3fwrn5/core.c')
-rw-r--r--drivers/nfc/s3fwrn5/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/s3fwrn5/core.c b/drivers/nfc/s3fwrn5/core.c
index 0d866ca295e3..9d9c8d57a042 100644
--- a/drivers/nfc/s3fwrn5/core.c
+++ b/drivers/nfc/s3fwrn5/core.c
@@ -147,7 +147,7 @@ static struct nci_ops s3fwrn5_nci_ops = {
};
int s3fwrn5_probe(struct nci_dev **ndev, void *phy_id, struct device *pdev,
- struct s3fwrn5_phy_ops *phy_ops, unsigned int max_payload)
+ const struct s3fwrn5_phy_ops *phy_ops, unsigned int max_payload)
{
struct s3fwrn5_info *info;
int ret;