linux_dsm_epyc7002/sound/soc/atmel
Julia Lawall 115c725488 ASoC: 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: Mark Brown <broonie@kernel.org>
2016-09-12 20:04:09 +01:00
..
atmel_ssc_dai.c ASoC: atmel_ssc_dai: Fix DMA params for different SSC 2016-07-07 12:00:07 +02:00
atmel_ssc_dai.h ASoC: atmel_ssc_dai: Allow more rates 2015-02-10 15:12:41 +08:00
atmel_wm8904.c ASoC: atmel_wm8904: add snd_soc_pm_ops 2015-12-23 00:04:45 +00:00
atmel-classd.c ASoC: Atmel: ClassD: Simplify use of devm_ioremap_resource 2016-07-04 16:14:59 +02:00
atmel-classd.h ASoC: atmel-classd: add the Audio Class D Amplifier 2015-10-23 01:48:33 +09:00
atmel-pcm-dma.c ASoC: dmaengine_pcm: Make FLAG_NO_RESIDUE internal 2015-04-27 19:26:07 +01:00
atmel-pcm-pdc.c ASoC: constify snd_pcm_ops structures 2016-09-12 20:04:09 +01:00
atmel-pcm.h ASoC: atmel-pcm-pdc: merge atmel-pcm back in 2015-04-01 21:24:27 +01:00
atmel-pdmic.c ASoC: atmel-pdmic: Simplify use of devm_ioremap_resource 2016-07-04 16:15:13 +02:00
atmel-pdmic.h ASoC: atmel-pdmic: add the Pulse Density Modulation Interface Controller 2015-12-18 07:02:37 +00:00
Kconfig ASoC: atmel: fix build failure 2016-06-06 17:00:47 +01:00
Makefile ASoC: atmel-pdmic: add the Pulse Density Modulation Interface Controller 2015-12-18 07:02:37 +00:00
sam9g20_wm8731.c ASoC: at91sam9g20ek: Automatically disconnect non-connected pins 2015-04-27 15:39:23 +01:00
sam9x5_wm8731.c ASoC: atmel: drop owner assignment from platform_drivers 2014-10-20 16:22:03 +02:00