summaryrefslogtreecommitdiffstats
path: root/drivers/nfc/s3fwrn5
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-21 19:03:58 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2017-11-06 00:56:56 +0100
commit81251cc599acfac63d68caa69c6284b546c66fe0 (patch)
tree22405b440f2ec369d94ad9264b73f6762be94a89 /drivers/nfc/s3fwrn5
parentnfc: pn544: constify i2c_device_id (diff)
downloadlinux-81251cc599acfac63d68caa69c6284b546c66fe0.tar.xz
linux-81251cc599acfac63d68caa69c6284b546c66fe0.zip
nfc: s3fwrn5: constify i2c_device_id
i2c_device_id are not supposed to change at runtime. All functions working with i2c_device_id provided by <linux/i2c.h> work with const i2c_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc/s3fwrn5')
-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 3f09d7fd2285..4da409e77a72 100644
--- a/drivers/nfc/s3fwrn5/i2c.c
+++ b/drivers/nfc/s3fwrn5/i2c.c
@@ -276,7 +276,7 @@ static int s3fwrn5_i2c_remove(struct i2c_client *client)
return 0;
}
-static struct i2c_device_id s3fwrn5_i2c_id_table[] = {
+static const struct i2c_device_id s3fwrn5_i2c_id_table[] = {
{S3FWRN5_I2C_DRIVER_NAME, 0},
{}
};