summaryrefslogtreecommitdiffstats
path: root/drivers/nfc/s3fwrn5/i2c.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/i2c.c
parent59df9bb25cf8a13443b8335a7a9013817c050b88 (diff)
downloadblackbird-op-linux-c6b5df0daf0ecbb986420ea7342a6bd9c71619a9.tar.gz
blackbird-op-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/i2c.c')
-rw-r--r--drivers/nfc/s3fwrn5/i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/s3fwrn5/i2c.c b/drivers/nfc/s3fwrn5/i2c.c
index c61d8a308da4..3ed0adf6479b 100644
--- a/drivers/nfc/s3fwrn5/i2c.c
+++ b/drivers/nfc/s3fwrn5/i2c.c
@@ -125,7 +125,7 @@ static int s3fwrn5_i2c_write(void *phy_id, struct sk_buff *skb)
return 0;
}
-static struct s3fwrn5_phy_ops i2c_phy_ops = {
+static const struct s3fwrn5_phy_ops i2c_phy_ops = {
.set_wake = s3fwrn5_i2c_set_wake,
.set_mode = s3fwrn5_i2c_set_mode,
.get_mode = s3fwrn5_i2c_get_mode,
OpenPOWER on IntegriCloud