OpenCloudOS-Kernel/sound/pci
Julia Lawall 8c91d7d09e ALSA: bt87x: 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>
Acked-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2016-09-02 11:51:03 +02:00
..
ac97 ALSA: ac97: Fix ifdef CONFIG_PROC_FS 2015-05-29 07:52:43 +02:00
ali5451 ALSA: remove deprecated use of pci api 2015-04-16 12:19:52 +02:00
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 ALSA: oxygen: constify snd_pcm_ops structures 2016-09-02 11:50:42 +02:00
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 ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
ymfpci ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
Kconfig ALSA: jack: Allow building the jack layer without input device 2016-02-23 09:03:07 +01:00
Makefile ALSA: Add the driver for Digigram Lola PCI-e boards 2011-05-03 16:31:05 +02:00
ad1889.c ALSA: ad1889: constify snd_pcm_ops structures 2016-09-02 11:50:24 +02:00
ad1889.h
ak4531_codec.c ALSA: pci: Drop superfluous ifdef CONFIG_PROC_FS 2015-05-29 08:00:06 +02:00
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 ALSA: azt3328: fix previous breakage, improve suspend, cleanups 2009-07-15 12:03:26 +02:00
bt87x.c ALSA: bt87x: constify snd_pcm_ops structures 2016-09-02 11:51:03 +02:00
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 ASoC: sb16: Simplify snd_sb16dsp_pcm() 2015-01-02 16:28:35 +01:00
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 ALSA: pci: Drop superfluous ifdef CONFIG_PROC_FS 2015-05-29 08:00:06 +02:00
maestro3.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
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 ALSA: remove deprecated use of pci api 2015-04-16 12:19:52 +02:00
sis7019.h trivial: fix typos s/paramter/parameter/ and s/excute/execute/ in documentation and source comments. 2009-06-12 18:01:46 +02:00
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