From: Arvind Yadav Date: Sat, 19 Aug 2017 18:28:19 +0000 (+0530) Subject: drm: i2c: sil164: constify i2c_device_id X-Git-Tag: v4.15~362^2~30^2~83 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=9d6d009a67aa2f10f45b70f67c48a908acbdf695;p=mirror_ubuntu-bionic-kernel.git 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 work with const i2c_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Signed-off-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/1503167300-17334-3-git-send-email-arvind.yadav.cs@gmail.com --- diff --git a/drivers/gpu/drm/i2c/sil164_drv.c b/drivers/gpu/drm/i2c/sil164_drv.c index db0b03fb0ff1..ecaa58757529 100644 --- a/drivers/gpu/drm/i2c/sil164_drv.c +++ b/drivers/gpu/drm/i2c/sil164_drv.c @@ -415,7 +415,7 @@ sil164_encoder_init(struct i2c_client *client, return 0; } -static struct i2c_device_id sil164_ids[] = { +static const struct i2c_device_id sil164_ids[] = { { "sil164", 0 }, { } };