提交 8728bddf 编写于 作者: J Julia Lawall 提交者: Mauro Carvalho Chehab

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: NJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 92a6882e
...@@ -218,7 +218,7 @@ static struct saa7146_standard analog_standard[]; ...@@ -218,7 +218,7 @@ static struct saa7146_standard analog_standard[];
static struct saa7146_standard dvb_standard[]; static struct saa7146_standard dvb_standard[];
static struct saa7146_standard standard[]; static struct saa7146_standard standard[];
static struct v4l2_audio msp3400_v4l2_audio = { static const struct v4l2_audio msp3400_v4l2_audio = {
.index = 0, .index = 0,
.name = "Television", .name = "Television",
.capability = V4L2_AUDCAP_STEREO .capability = V4L2_AUDCAP_STEREO
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册