linux/sound/soc/sh
Bhumika Goyal 905e46acd3 ALSA: declare snd_kcontrol_new structures as const
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;

Cross compiled these files:
sound/aoa/codecs/tas.c - powerpc
sound/mips/{hal2.c/sgio2audio.c} - mips
sound/ppc/{awacs.c/beep.c/tumbler.c} - powerpc
sound/soc/sh/siu_dai.c - sh
Could not find an architecture to compile sound/sh/aica.c.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2017-05-30 10:29:25 +02:00
..
rcar ASoC: rsnd: Fix possible NULL pointer dereference 2017-04-21 17:51:48 +01:00
dma-sh7760.c ASoC: sh: dma-sh7760: Convert to devm_snd_soc_register_platform 2015-08-30 12:15:10 +01:00
fsi.c ASoC: sh: fix fsi build warnings for 64 bit 2015-11-21 13:27:03 +00:00
hac.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
Kconfig ASoC: rsnd: enable COMPILE_TEST 2016-10-26 13:13:25 +01:00
Makefile ASoC: add Renesas R-Car core feature 2013-07-28 19:34:09 +01:00
migor.c ASoC: migor: use clkdev_create() 2015-05-06 11:58:59 +01:00
sh7760-ac97.c ASoC: sh: Add .owner to struct snd_soc_card 2011-12-23 11:32:07 +00:00
siu_dai.c ALSA: declare snd_kcontrol_new structures as const 2017-05-30 10:29:25 +02:00
siu_pcm.c ASoC: sh: Remove unnecessary snd_pcm_lib_preallocate_free_for_all() 2015-01-05 21:30:05 +00:00
siu.h
ssi.c ASoC: sh: ssi: Convert to devm_snd_soc_register_component 2015-08-28 17:28:49 +01:00