diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-19 15:20:43 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-26 08:42:28 -0400 |
commit | 4bd7466bf73a3b2e7a0308eb510a9746a84ab7dd (patch) | |
tree | 2931dcc70be9a3b6ed03eb0c715646fc06b13440 /drivers/media/i2c | |
parent | 99b1ddf94d2b25fdfac5d0989a08228870bd4e00 (diff) | |
download | blackbird-op-linux-4bd7466bf73a3b2e7a0308eb510a9746a84ab7dd.tar.gz blackbird-op-linux-4bd7466bf73a3b2e7a0308eb510a9746a84ab7dd.zip |
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 <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: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r-- | drivers/media/i2c/adv7511.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/adv7511.c b/drivers/media/i2c/adv7511.c index aef02c994df9..2817bafc67bf 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 }, { } }; |