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> |
||
---|---|---|
.. | ||
ak4xxx.c | ||
amp.c | ||
amp.h | ||
aureon.c | ||
aureon.h | ||
delta.c | ||
delta.h | ||
envy24ht.h | ||
ews.c | ||
ews.h | ||
hoontech.c | ||
hoontech.h | ||
ice1712.c | ||
ice1712.h | ||
ice1724.c | ||
juli.c | ||
juli.h | ||
Makefile | ||
maya44.c | ||
maya44.h | ||
phase.c | ||
phase.h | ||
pontis.c | ||
pontis.h | ||
prodigy192.c | ||
prodigy192.h | ||
prodigy_hifi.c | ||
prodigy_hifi.h | ||
psc724.c | ||
psc724.h | ||
quartet.c | ||
quartet.h | ||
revo.c | ||
revo.h | ||
se.c | ||
se.h | ||
stac946x.h | ||
vt1720_mobo.c | ||
vt1720_mobo.h | ||
wm8766.c | ||
wm8766.h | ||
wm8776.c | ||
wm8776.h | ||
wtm.c | ||
wtm.h |