Skip to content

Commit 81251cc

Browse files
ArvindYadavCsSamuel Ortiz
authored andcommitted
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>
1 parent 3737ff1 commit 81251cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/nfc/s3fwrn5/i2c.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ static int s3fwrn5_i2c_remove(struct i2c_client *client)
276276
return 0;
277277
}
278278

279-
static struct i2c_device_id s3fwrn5_i2c_id_table[] = {
279+
static const struct i2c_device_id s3fwrn5_i2c_id_table[] = {
280280
{S3FWRN5_I2C_DRIVER_NAME, 0},
281281
{}
282282
};

0 commit comments

Comments
 (0)