alistair23-linux/sound/pci
Julia Lawall 6769e988b0 ALSA: constify snd_pcm_ops structures
Check for snd_pcm_ops structures that are only stored in the ops field of a
snd_soc_platform_driver structure or passed as the third argument to
snd_pcm_set_ops.  The corresponding field or parameter is declared const,
so snd_pcm_ops structures that have this property can be declared as const
also.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@r disable optional_qualifier@
identifier i;
position p;
@@
static struct snd_pcm_ops i@p = { ... };

@ok1@
identifier r.i;
struct snd_soc_platform_driver e;
position p;
@@
e.ops = &i@p;

@ok2@
identifier r.i;
expression e1, e2;
position p;
@@
snd_pcm_set_ops(e1, e2, &i@p)

@bad@
position p != {r.p,ok1.p,ok2.p};
identifier r.i;
struct snd_pcm_ops e;
@@
e@i@p

@depends on !bad disable optional_qualifier@
identifier r.i;
@@
static
+const
 struct snd_pcm_ops i = { ... };
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2016-09-02 11:49:10 +02:00
..
ac97
ali5451
asihpi ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
au88x0 ALSA: au88x0: Fix calculation in vortex_wtdma_bufshift() 2016-06-29 15:26:12 +02:00
aw2 ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
ca0106 ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
cs46xx ALSA: cs46xx: fix typo "seconadry" -> "secondary" 2016-09-01 14:21:53 +02:00
cs5535audio ALSA: cs5535audio: constify snd_pcm_ops structures 2016-09-02 11:48:56 +02:00
ctxfi ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
echoaudio Merge branch 'for-next' into for-linus 2016-07-25 17:01:14 +02:00
emu10k1 ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
hda ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
ice1712 ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
korg1212 ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
lola ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
lx6464es ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
mixart ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
nm256 ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
oxygen
pcxhr ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
riptide ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
rme9652 ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
trident ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
vx222
ymfpci ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
ad1889.c
ad1889.h
ak4531_codec.c
als300.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
als4000.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
atiixp.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
atiixp_modem.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
azt3328.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
azt3328.h
bt87x.c
cmipci.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
cs4281.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
cs5530.c
ens1370.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
ens1371.c
es1938.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
es1968.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
fm801.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
intel8x0.c ALSA: intel8x0: Drop superfluous VM checks 2016-04-06 07:46:28 +02:00
intel8x0m.c
Kconfig ALSA: jack: Allow building the jack layer without input device 2016-02-23 09:03:07 +01:00
maestro3.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
Makefile
rme32.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
rme96.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
sis7019.c
sis7019.h
sonicvibes.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
via82xx.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
via82xx_modem.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00