summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-21 09:35:50 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-26 14:29:34 -0400
commit597c147ba950a3b0c4ecb0d1877668b66425c262 (patch)
tree7e94b8f4cdf6e73f7219904007b7558781d6563e /drivers/media/pci
parent4d947447cf54a877ac81c4667706892c4b57a1d2 (diff)
downloadlinux-597c147ba950a3b0c4ecb0d1877668b66425c262.tar.bz2
media: cx18: Make i2c_algo_bit_data const
Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Hans Verkuil <hansverk@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r--drivers/media/pci/cx18/cx18-i2c.c2
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 af56d56eae08..7f588eeac60f 100644
--- a/drivers/media/pci/cx18/cx18-i2c.c
+++ b/drivers/media/pci/cx18/cx18-i2c.c
@@ -216,7 +216,7 @@ static const struct i2c_adapter cx18_i2c_adap_template = {
#define CX18_SCL_PERIOD (10) /* usecs. 10 usec is period for a 100 KHz clock */
#define CX18_ALGO_BIT_TIMEOUT (2) /* seconds */
-static struct i2c_algo_bit_data cx18_i2c_algo_template = {
+static const struct i2c_algo_bit_data cx18_i2c_algo_template = {
.setsda = cx18_setsda,
.setscl = cx18_setscl,
.getsda = cx18_getsda,