From: Julia Lawall Date: Mon, 14 Aug 2017 05:43:56 +0000 (-0400) Subject: media: v4l2: av7110_v4l: constify v4l2_audio structure X-Git-Tag: v4.14-rc6~35^2~290 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8728bddf4bf591517bc1c36854ce0fcb94392fa4;p=platform%2Fkernel%2Flinux-rpi.git media: v4l2: av7110_v4l: constify v4l2_audio structure 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 Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/pci/ttpci/av7110_v4l.c b/drivers/media/pci/ttpci/av7110_v4l.c index 397fe14..e4cf42c 100644 --- a/drivers/media/pci/ttpci/av7110_v4l.c +++ b/drivers/media/pci/ttpci/av7110_v4l.c @@ -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