From: Bhumika Goyal Date: Wed, 16 Aug 2017 09:17:04 +0000 (-0400) Subject: media: cx88: make snd_kcontrol_new const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9a69ae1d46b09bb7fdefb7cf6fc459563123eacc;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git media: cx88: make snd_kcontrol_new const Make this const as it only passed as the 1st argument to the function snd_ctl_new1, which is of type const. Done using Coccinelle. Signed-off-by: Bhumika Goyal Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/pci/cx88/cx88-alsa.c b/drivers/media/pci/cx88/cx88-alsa.c index c81fe4681d14..9740326bc93f 100644 --- a/drivers/media/pci/cx88/cx88-alsa.c +++ b/drivers/media/pci/cx88/cx88-alsa.c @@ -799,7 +799,7 @@ static int snd_cx88_alc_put(struct snd_kcontrol *kcontrol, return 0; } -static struct snd_kcontrol_new snd_cx88_alc_switch = { +static const struct snd_kcontrol_new snd_cx88_alc_switch = { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = "Line-In ALC Switch", .info = snd_ctl_boolean_mono_info,