From: Arvind Yadav Date: Sat, 19 Aug 2017 19:20:43 +0000 (-0400) Subject: media: adv7511: constify i2c_device_id X-Git-Tag: v4.14-rc6~35^2~194 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4bd7466bf73a3b2e7a0308eb510a9746a84ab7dd;p=platform%2Fkernel%2Flinux-rpi.git media: adv7511: 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: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/i2c/adv7511.c b/drivers/media/i2c/adv7511.c index aef02c9..2817baf 100644 --- a/drivers/media/i2c/adv7511.c +++ b/drivers/media/i2c/adv7511.c @@ -1985,7 +1985,7 @@ static int adv7511_remove(struct i2c_client *client) /* ----------------------------------------------------------------------- */ -static struct i2c_device_id adv7511_id[] = { +static const struct i2c_device_id adv7511_id[] = { { "adv7511", 0 }, { } };