linux/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
..
darla20_dsp.c ALSA: echoaudio: Use standard C definitions of true and false 2015-08-10 14:27:16 +02:00
darla20.c ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
darla24_dsp.c ALSA: echoaudio: Use standard C definitions of true and false 2015-08-10 14:27:16 +02:00
darla24.c ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
echo3g_dsp.c ALSA: echoaudio: Use standard C definitions of true and false 2015-08-10 14:27:16 +02:00
echo3g.c ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
echoaudio_3g.c ALSA: echoaudio: Use standard C definitions of true and false 2015-08-10 14:27:16 +02:00
echoaudio_dsp.c ALSA: echoaudio: Use standard C definitions of true and false 2015-08-10 14:27:16 +02:00
echoaudio_dsp.h ALSA: Echoaudio: add support for Indigo express cards 2009-03-19 08:17:57 +01:00
echoaudio_gml.c ALSA: echoaudio: Use standard C definitions of true and false 2015-08-10 14:27:16 +02:00
echoaudio.c ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
echoaudio.h ALSA: echoaudio: Use standard C definitions of true and false 2015-08-10 14:27:16 +02:00
gina20_dsp.c ALSA: echoaudio: Use standard C definitions of true and false 2015-08-10 14:27:16 +02:00
gina20.c ALSA: echoaudio: Use standard C definitions of true and false 2015-08-10 14:27:16 +02:00
gina24_dsp.c ALSA: echoaudio: Use standard C definitions of true and false 2015-08-10 14:27:16 +02:00
gina24.c ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
indigo_dsp.c ALSA: echoaudio: Use standard C definitions of true and false 2015-08-10 14:27:16 +02:00
indigo_express_dsp.c ALSA: echoaudio: remove all snd_printk 2014-11-03 14:07:25 +01:00
indigo.c ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
indigodj_dsp.c ALSA: echoaudio: Use standard C definitions of true and false 2015-08-10 14:27:16 +02:00
indigodj.c ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
indigodjx_dsp.c ALSA: echoaudio: Use standard C definitions of true and false 2015-08-10 14:27:16 +02:00
indigodjx.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
indigoio_dsp.c ALSA: echoaudio: Use standard C definitions of true and false 2015-08-10 14:27:16 +02:00
indigoio.c ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
indigoiox_dsp.c ALSA: echoaudio: Use standard C definitions of true and false 2015-08-10 14:27:16 +02:00
indigoiox.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
layla20_dsp.c ALSA: echoaudio: Use standard C definitions of true and false 2015-08-10 14:27:16 +02:00
layla20.c ALSA: echoaudio: Use standard C definitions of true and false 2015-08-10 14:27:16 +02:00
layla24_dsp.c ALSA: echoaudio: Fix improper return value in function load_asic 2016-11-29 19:59:57 +01:00
layla24.c ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
Makefile ALSA: Echoaudio: add support for Indigo express cards 2009-03-19 08:17:57 +01:00
mia_dsp.c ALSA: echoaudio: Use standard C definitions of true and false 2015-08-10 14:27:16 +02:00
mia.c ALSA: echoaudio: Use standard C definitions of true and false 2015-08-10 14:27:16 +02:00
midi.c ALSA: pci: Constify snd_rawmidi_ops 2017-01-12 12:50:26 +01:00
mona_dsp.c ALSA: echoaudio: Use standard C definitions of true and false 2015-08-10 14:27:16 +02:00
mona.c ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00