From: Arvind Yadav Date: Sat, 19 Aug 2017 19:20:47 +0000 (-0400) Subject: media: ths8200: constify i2c_device_id X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e0ee62c49fdd8f6780abcc980c4b24e05e3a0af3;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git media: ths8200: 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/ths8200.c b/drivers/media/i2c/ths8200.c index 42340e364cea..498ad2368cbc 100644 --- a/drivers/media/i2c/ths8200.c +++ b/drivers/media/i2c/ths8200.c @@ -483,7 +483,7 @@ static int ths8200_remove(struct i2c_client *client) return 0; } -static struct i2c_device_id ths8200_id[] = { +static const struct i2c_device_id ths8200_id[] = { { "ths8200", 0 }, {}, };