aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/ad9389b.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-19 15:20:42 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-26 08:42:12 -0400
commit99b1ddf94d2b25fdfac5d0989a08228870bd4e00 (patch)
treefbeeaf61d15b3ea814af435fa89f53d2e1bd12bc /drivers/media/i2c/ad9389b.c
parentmedia: usb: make i2c_adapter const (diff)
downloadlinux-dev-99b1ddf94d2b25fdfac5d0989a08228870bd4e00.tar.xz
linux-dev-99b1ddf94d2b25fdfac5d0989a08228870bd4e00.zip
media: ad9389b: 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/ad9389b.c')
-rw-r--r--drivers/media/i2c/ad9389b.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/ad9389b.c b/drivers/media/i2c/ad9389b.c
index 50f354144ee7..a056d6cdaaaa 100644
--- a/drivers/media/i2c/ad9389b.c
+++ b/drivers/media/i2c/ad9389b.c
@@ -1208,7 +1208,7 @@ static int ad9389b_remove(struct i2c_client *client)
/* ----------------------------------------------------------------------- */
-static struct i2c_device_id ad9389b_id[] = {
+static const struct i2c_device_id ad9389b_id[] = {
{ "ad9389b", 0 },
{ "ad9889b", 0 },
{ }