forked from Minki/linux
f3b827e0b1
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> |
||
---|---|---|
.. | ||
emu10k1_callback.c | ||
emu10k1_main.c | ||
emu10k1_patch.c | ||
emu10k1_synth_local.h | ||
emu10k1_synth.c | ||
emu10k1.c | ||
emu10k1x.c | ||
emufx.c | ||
emumixer.c | ||
emumpu401.c | ||
emupcm.c | ||
emuproc.c | ||
io.c | ||
irq.c | ||
Makefile | ||
memory.c | ||
p16v.c | ||
p16v.h | ||
p17v.h | ||
timer.c | ||
tina2.h | ||
voice.c |