media: bt8xx: Make i2c_algo_bit_data const
authorBhumika Goyal <bhumirks@gmail.com>
Mon, 21 Aug 2017 13:33:32 +0000 (09:33 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 26 Aug 2017 18:29:21 +0000 (14:29 -0400)
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>
drivers/media/pci/bt8xx/bttv-i2c.c

index 274fd036b306f83ff923008af6ed425c9c265765..eccd1e3d717a2591356356f05697db5b88778e0d 100644 (file)
@@ -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,