linux_dsm_epyc7002/sound/isa
Bhumika Goyal 3a84d6c940 ALSA: sound/isa: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed an
argument to the function snd_ctl_new1. This argument is of type const,
so snd_kcontrol_new structures having this property can be made const.
Done using Coccinelle:

@r disable optional_qualifier@
identifier x;
position p;
@@
static struct snd_kcontrol_new x@p={...};

@ok@
identifier r.x;
position p;
@@
snd_ctl_new1(&x@p,...)

@bad@
position p != {r.p,ok.p};
identifier r.x;
@@
x@p

@depends on !bad disable optional_qualifier@
identifier r.x;
@@
+const
struct snd_kcontrol_new x;

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2017-05-21 09:07:56 +02:00
..
ad1816a ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
ad1848 Annotate hardware config module parameters in sound/isa/ 2017-04-20 12:02:32 +01:00
cs423x Annotate hardware config module parameters in sound/isa/ 2017-04-20 12:02:32 +01:00
es1688 Annotation of module parameters that specify device settings 2017-05-10 19:13:03 -07:00
galaxy Annotate hardware config module parameters in sound/isa/ 2017-04-20 12:02:32 +01:00
gus ALSA: sound/isa: constify snd_kcontrol_new structures 2017-05-21 09:07:56 +02:00
msnd Annotate hardware config module parameters in sound/isa/ 2017-04-20 12:02:32 +01:00
opti9xx Annotate hardware config module parameters in sound/isa/ 2017-04-20 12:02:32 +01:00
sb ALSA: sound/isa: constify snd_kcontrol_new structures 2017-05-21 09:07:56 +02:00
wavefront Annotate hardware config module parameters in sound/isa/ 2017-04-20 12:02:32 +01:00
wss ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
adlib.c Annotate hardware config module parameters in sound/isa/ 2017-04-20 12:02:32 +01:00
als100.c ASoC: sb16: Simplify snd_sb16dsp_pcm() 2015-01-02 16:28:35 +01:00
azt2320.c ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
cmi8328.c ALSA: cmi8238: Use IS_ENABLED() 2017-05-17 07:13:05 +02:00
cmi8330.c Annotate hardware config module parameters in sound/isa/ 2017-04-20 12:02:32 +01:00
es18xx.c Annotate hardware config module parameters in sound/isa/ 2017-04-20 12:02:32 +01:00
Kconfig ALSA: Add missing dependency on CONFIG_SND_TIMER 2016-01-27 07:10:38 +01:00
Makefile ALSA: introduce snd-cmi8328: C-Media CMI8328 driver 2012-08-21 07:30:46 +02:00
opl3sa2.c Annotate hardware config module parameters in sound/isa/ 2017-04-20 12:02:32 +01:00
sc6000.c Annotate hardware config module parameters in sound/isa/ 2017-04-20 12:02:32 +01:00
sscape.c ALSA: sound/isa: constify snd_kcontrol_new structures 2017-05-21 09:07:56 +02:00