diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-21 22:33:58 +0530 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2017-11-06 00:56:56 +0100 |
commit | 81251cc599acfac63d68caa69c6284b546c66fe0 (patch) | |
tree | 22405b440f2ec369d94ad9264b73f6762be94a89 /drivers/nfc | |
parent | 3737ff15b0e88fd9d4942118c2c9ece917ddc68f (diff) | |
download | linux-81251cc599acfac63d68caa69c6284b546c66fe0.tar.bz2 |
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')
-rw-r--r-- | drivers/nfc/s3fwrn5/i2c.c | 2 |
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}, {} }; |