kernel_optimize_test/sound/isa/sb
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
..
emu8000_callback.c sound: Remove unnecessary semicolon 2012-10-06 16:47:53 +02:00
emu8000_local.h [ALSA] Remove sound/driver.h 2008-01-31 17:29:48 +01:00
emu8000_patch.c 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
emu8000_pcm.c 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
emu8000_synth.c ALSA: seq: Define driver object in each driver 2015-02-12 14:15:54 +01:00
emu8000.c ALSA: sb: Use IS_REACHABLE() 2017-05-17 07:13:06 +02:00
jazz16.c Annotate hardware config module parameters in sound/isa/ 2017-04-20 12:02:32 +01:00
Makefile ALSA: Merge es1688 and es968 drivers 2010-05-10 09:49:30 +02:00
sb_common.c ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
sb_mixer.c ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
sb8_main.c ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
sb8_midi.c ALSA: isa: Constify snd_rawmidi_ops 2017-01-12 12:50:16 +01:00
sb8.c Annotate hardware config module parameters in sound/isa/ 2017-04-20 12:02:32 +01:00
sb16_csp.c ALSA: sound/isa: constify snd_kcontrol_new structures 2017-05-21 09:07:56 +02:00
sb16_main.c ALSA: sound/isa: constify snd_kcontrol_new structures 2017-05-21 09:07:56 +02:00
sb16.c ALSA: sb: Use IS_REACHABLE() 2017-05-17 07:13:06 +02:00
sbawe.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00