linux/sound/pci/lola
Bhumika Goyal f3b827e0b1 ALSA: pci: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed as
an argument to the function snd_ctl_new1. This argument is of type
const, so snd_kcontrol_new structures having the same property can be
made const too.
Done using Coccinelle:

@r1 disable optional_qualifier @
identifier i;
position p;
@@
static struct snd_kcontrol_new i@p = {...};

@ok1@
identifier r1.i;
position p;
expression e1;
@@
snd_ctl_new1(&i@p,e1)

@bad@
position p!={r1.p,ok1.p};
identifier r1.i;
@@
i@p

@depends on !bad disable optional_qualifier@
identifier r1.i;
@@
+const
struct snd_kcontrol_new i;

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2017-02-21 22:01:21 +01:00
..
Makefile ALSA: lola - fix lola build 2011-05-04 19:55:13 +02:00
lola.c ALSA: Deletion of checks before the function call "iounmap" 2015-01-04 15:13:45 +01:00
lola.h ALSA: lola - Fix for Lola280 board 2011-06-24 12:54:43 +02:00
lola_clock.c ALSA: lola: Use standard printk helpers 2014-02-26 16:45:28 +01:00
lola_mixer.c ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
lola_pcm.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
lola_proc.c ALSA: lola: fix format type mismatch in sound/pci/lola/lola_proc.c 2014-05-21 11:12:15 +02:00