Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

nfc: nfcmrvl: 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>

authored by

Arvind Yadav and committed by
Samuel Ortiz
ab1df981 f98bc10e

+1 -1
+1 -1
drivers/nfc/nfcmrvl/i2c.c
··· 266 266 }; 267 267 MODULE_DEVICE_TABLE(of, of_nfcmrvl_i2c_match); 268 268 269 - static struct i2c_device_id nfcmrvl_i2c_id_table[] = { 269 + static const struct i2c_device_id nfcmrvl_i2c_id_table[] = { 270 270 { "nfcmrvl_i2c", 0 }, 271 271 {} 272 272 };