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

drm: i2c: sil164: 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: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1503167300-17334-3-git-send-email-arvind.yadav.cs@gmail.com

authored by

Arvind Yadav and committed by
Daniel Vetter
9d6d009a eab18d76

+1 -1
+1 -1
drivers/gpu/drm/i2c/sil164_drv.c
··· 415 415 return 0; 416 416 } 417 417 418 - static struct i2c_device_id sil164_ids[] = { 418 + static const struct i2c_device_id sil164_ids[] = { 419 419 { "sil164", 0 }, 420 420 { } 421 421 };