acrn-kernel/sound/pci/echoaudio
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
darla20.c
darla20_dsp.c
darla24.c
darla24_dsp.c
echo3g.c
echo3g_dsp.c
echoaudio.c ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
echoaudio.h
echoaudio_3g.c
echoaudio_dsp.c
echoaudio_dsp.h
echoaudio_gml.c
gina20.c
gina20_dsp.c
gina24.c
gina24_dsp.c
indigo.c
indigo_dsp.c
indigo_express_dsp.c
indigodj.c
indigodj_dsp.c
indigodjx.c
indigodjx_dsp.c
indigoio.c
indigoio_dsp.c
indigoiox.c
indigoiox_dsp.c
layla20.c
layla20_dsp.c
layla24.c
layla24_dsp.c ALSA: echoaudio: Fix improper return value in function load_asic 2016-11-29 19:59:57 +01:00
mia.c
mia_dsp.c
midi.c ALSA: pci: Constify snd_rawmidi_ops 2017-01-12 12:50:26 +01:00
mona.c
mona_dsp.c