linux-hardened/sound/firewire/bebob
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
..
bebob.c ALSA: bebob: compare whole string for model name so that readers are not confused 2016-11-18 09:22:47 +01:00
bebob.h sched/headers: Prepare to move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h> 2017-03-02 08:42:32 +01:00
bebob_command.c ALSA: firewire-lib/bebob/oxfw: improve response evaluation for AV/C commands 2017-04-05 21:37:23 +02:00
bebob_focusrite.c ALSA: bebob: constify various snd_bebob structures 2015-10-11 18:12:37 +02:00
bebob_hwdep.c ALSA: bebob: enclose identifiers referred by single function 2017-01-05 16:58:01 +01:00
bebob_maudio.c ALSA: declare snd_kcontrol_new structures as const 2017-05-30 10:29:25 +02:00
bebob_midi.c ALSA: firewire: Constify snd_rawmidi_ops 2017-01-12 12:50:38 +01:00
bebob_pcm.c ALSA: firewire: remove support for 16 bit PCM samples in playback substream 2017-05-22 16:24:08 +02:00
bebob_proc.c ALSA: bebob: constify various snd_bebob structures 2015-10-11 18:12:37 +02:00
bebob_stream.c ALSA: firewire-lib: enable the same feature as CIP_SKIP_INIT_DBC_CHECK flag 2016-05-10 17:04:01 +02:00
bebob_terratec.c ALSA: bebob: unify configurations for some models produced by Yamaha/Terratec 2016-08-24 15:35:11 +02:00
bebob_yamaha_terratec.c ALSA: bebob: unify configurations for some models produced by Yamaha/Terratec 2016-08-24 15:35:11 +02:00
Makefile ALSA: bebob: rename file with vendor-dependent code so that it's for Yamaha/Terratec 2016-08-24 15:35:03 +02:00