Skip to content

Commit

Permalink
media: bt8xx: Make i2c_algo_bit_data const
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bhumika Goyal authored and Mauro Carvalho Chehab committed Aug 26, 2017
1 parent 07d3717 commit 4d94744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/pci/bt8xx/bttv-i2c.c
Original file line number Diff line number Diff line change
@@ -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,

0 comments on commit 4d94744

Please sign in to comment.