mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 05:40:55 +07:00
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> |
||
---|---|---|
.. | ||
au88x0_a3d.c | ||
au88x0_a3d.h | ||
au88x0_a3ddata.c | ||
au88x0_core.c | ||
au88x0_eq.c | ||
au88x0_eq.h | ||
au88x0_eqdata.c | ||
au88x0_game.c | ||
au88x0_mixer.c | ||
au88x0_mpu401.c | ||
au88x0_pcm.c | ||
au88x0_synth.c | ||
au88x0_wt.h | ||
au88x0_xtalk.c | ||
au88x0_xtalk.h | ||
au88x0.c | ||
au88x0.h | ||
au8810.c | ||
au8810.h | ||
au8820.c | ||
au8820.h | ||
au8830.c | ||
au8830.h | ||
Makefile |