diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-19 06:34:13 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-26 08:41:15 -0400 |
commit | e5fffebe6d39cf8ad0a7628822d9c3a519523135 (patch) | |
tree | e3fdacb582087a6309c1735bb698ae247c380c7e /drivers/media/pci/cx18 | |
parent | ea9b0f31c1acd35b6905dbfa7dd19c01592470f6 (diff) | |
download | linux-e5fffebe6d39cf8ad0a7628822d9c3a519523135.tar.bz2 |
media: pci: make i2c_adapter const
Make these const as they are only used in a copy operation.
Done using Coccinelle
Signed-off-by: Bhumika Goyal <bhumirks@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/pci/cx18')
-rw-r--r-- | drivers/media/pci/cx18/cx18-i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/cx18/cx18-i2c.c b/drivers/media/pci/cx18/cx18-i2c.c index b89fbcbfb491..af56d56eae08 100644 --- a/drivers/media/pci/cx18/cx18-i2c.c +++ b/drivers/media/pci/cx18/cx18-i2c.c @@ -206,7 +206,7 @@ static int cx18_getsda(void *data) } /* template for i2c-bit-algo */ -static struct i2c_adapter cx18_i2c_adap_template = { +static const struct i2c_adapter cx18_i2c_adap_template = { .name = "cx18 i2c driver", .algo = NULL, /* set by i2c-algo-bit */ .algo_data = NULL, /* filled from template */ |