linux/sound/pci/cs46xx
Bhumika Goyal 30b5817e09 ALSA: cs46xx: 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:08:10 +02:00
..
cs46xx_dsp_scb_types.h ALSA: Move some headers to local directories from include/sound 2012-07-03 08:23:09 +02:00
cs46xx_dsp_spos.h ALSA: Move some headers to local directories from include/sound 2012-07-03 08:23:09 +02:00
cs46xx_dsp_task_types.h scripts/spelling.txt: add "overwriten" pattern and fix typo instances 2017-02-27 18:43:47 -08:00
cs46xx_lib.c ALSA: cs46xx: constify snd_kcontrol_new structures 2017-05-21 09:08:10 +02:00
cs46xx_lib.h ALSA: cs46xx: Fix old ifdef CONFIG_PROC_FS 2015-05-29 07:55:37 +02:00
cs46xx.c ALSA: cs46xx: Remove always NULL parameters 2015-01-02 16:32:03 +01:00
cs46xx.h ALSA: cs46xx: Remove always NULL parameters 2015-01-02 16:32:03 +01:00
dsp_spos_scb_lib.c ALSA: cs46xx: Fix old ifdef CONFIG_PROC_FS 2015-05-29 07:55:37 +02:00
dsp_spos.c ALSA: cs46xx: add a new line 2016-12-07 12:35:03 +01:00
dsp_spos.h ALSA: cs46xx - Fix suspend/resume with new DSP 2009-12-22 09:00:14 +01:00
Makefile [ALSA] Changed Jaroslav Kysela's e-mail from perex@suse.cz to perex@perex.cz 2007-10-16 16:51:18 +02:00