media: cx88: make snd_kcontrol_new const
authorBhumika Goyal <bhumirks@gmail.com>
Wed, 16 Aug 2017 09:17:04 +0000 (05:17 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 20 Aug 2017 12:25:27 +0000 (08:25 -0400)
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 <bhumirks@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/cx88/cx88-alsa.c

index c81fe4681d14b251a1bb685cad02d5ff1a015282..9740326bc93f973025ec0a817407fabc5ea0a115 100644 (file)
@@ -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,