Skip to content

Commit

Permalink
media: v4l2: av7110_v4l: constify v4l2_audio structure
Browse files Browse the repository at this point in the history
This v4l2_audio structure is only copied into other structures,
so it can be const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
  • Loading branch information
Julia Lawall authored and Mauro Carvalho Chehab committed Aug 20, 2017
1 parent 92a6882 commit 8728bdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/pci/ttpci/av7110_v4l.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ static struct saa7146_standard analog_standard[];
static struct saa7146_standard dvb_standard[];
static struct saa7146_standard standard[];

static struct v4l2_audio msp3400_v4l2_audio = {
static const struct v4l2_audio msp3400_v4l2_audio = {
.index = 0,
.name = "Television",
.capability = V4L2_AUDCAP_STEREO
Expand Down

0 comments on commit 8728bdd

Please sign in to comment.