summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-21 15:33:32 +0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-26 20:29:21 +0200
commit4d947447cf54a877ac81c4667706892c4b57a1d2 (patch)
tree49841b8c344efd4915b9bc141d7420f2106c9300 /drivers/media
parentmedia: venus: venc: set correct resolution on compressed stream (diff)
downloadlinux-4d947447cf54a877ac81c4667706892c4b57a1d2.tar.xz
linux-4d947447cf54a877ac81c4667706892c4b57a1d2.zip
media: bt8xx: 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')
-rw-r--r--drivers/media/pci/bt8xx/bttv-i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/bt8xx/bttv-i2c.c b/drivers/media/pci/bt8xx/bttv-i2c.c
index 274fd036b306..eccd1e3d717a 100644
--- a/drivers/media/pci/bt8xx/bttv-i2c.c
+++ b/drivers/media/pci/bt8xx/bttv-i2c.c
@@ -97,7 +97,7 @@ static int bttv_bit_getsda(void *data)
return state;
}
-static struct i2c_algo_bit_data bttv_i2c_algo_bit_template = {
+static const struct i2c_algo_bit_data bttv_i2c_algo_bit_template = {
.setsda = bttv_bit_setsda,
.setscl = bttv_bit_setscl,
.getsda = bttv_bit_getsda,