diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-21 13:03:58 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2017-11-05 18:56:56 -0500 |
commit | 81251cc599acfac63d68caa69c6284b546c66fe0 (patch) | |
tree | 22405b440f2ec369d94ad9264b73f6762be94a89 | |
parent | 3737ff15b0e88fd9d4942118c2c9ece917ddc68f (diff) |
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>
-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) | |||
276 | return 0; | 276 | return 0; |
277 | } | 277 | } |
278 | 278 | ||
279 | static struct i2c_device_id s3fwrn5_i2c_id_table[] = { | 279 | static const struct i2c_device_id s3fwrn5_i2c_id_table[] = { |
280 | {S3FWRN5_I2C_DRIVER_NAME, 0}, | 280 | {S3FWRN5_I2C_DRIVER_NAME, 0}, |
281 | {} | 281 | {} |
282 | }; | 282 | }; |