linux-stable/sound/soc/fsl
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
..
efika-audio-fabric.c
eukrea-tlv320.c ASoC: fsl: fix typos for sound/soc/fsl/* 2015-08-12 13:36:58 +01:00
fsl-asoc-card.c ASoC: fsl-asoc-card: add cs4271 and cs4272 support 2016-02-05 13:32:40 +00:00
fsl_asrc.c Merge remote-tracking branches 'asoc/topic/fsl-asrc' and 'asoc/topic/fsl-ssi' into asoc-next 2016-01-11 13:54:36 +00:00
fsl_asrc.h ASoC: fsl_asrc: sound is wrong after suspend/resume 2016-01-05 13:19:11 +00:00
fsl_asrc_dma.c ASoC: constify snd_pcm_ops structures 2016-09-12 20:04:09 +01:00
fsl_dma.c ASoC: fsl: fsl_dma: Use true/false for boolean init 2015-05-11 16:13:36 +01:00
fsl_dma.h
fsl_esai.c Merge remote-tracking branches 'asoc/topic/dpcm', 'asoc/topic/dwc', 'asoc/topic/fsl', 'asoc/topic/fsl-asrc' and 'asoc/topic/fsl-esai' into asoc-next 2015-12-23 00:23:40 +00:00
fsl_esai.h ASoC: fsl_esai: Fix incorrect xDC field width of xCCR registers 2014-12-30 11:29:19 +00:00
fsl_sai.c ASoC: fsl_sai: Allow setting the SAI MCLK direction 2016-05-05 16:44:22 +01:00
fsl_sai.h ASoC: fsl_sai: add tdm slots operation support 2015-11-25 12:03:30 +00:00
fsl_spdif.c ASoC: fsl_spdif: fix spelling mistake: "receivce" -> "receive" 2016-06-28 15:57:48 +01:00
fsl_spdif.h ASoC: fsl_spdif: Add support for output sample rates 96kHz and 192kHz 2014-06-17 15:36:54 +01:00
fsl_ssi.c ASoC: fsl_ssi: Fix number of words per frame for I2S-slave mode 2016-06-29 19:20:11 +01:00
fsl_ssi.h ASoC: fsl-ssi: Use regmap 2014-06-01 11:55:08 +01:00
fsl_ssi_dbg.c ASoC: fsl-ssi: Move debugging to seperate file 2014-05-20 23:02:26 +01:00
fsl_utils.c ASoC: fsl: Remove fsl_asoc_xlate_tdm_slot_mask() 2015-01-14 19:04:56 +00:00
fsl_utils.h ASoC: fsl: Remove fsl_asoc_xlate_tdm_slot_mask() 2015-01-14 19:04:56 +00:00
imx-audmux.c ASoC: fsl: Constify platform_device_id 2015-05-01 17:51:43 +01:00
imx-audmux.h
imx-es8328.c ASoC: imx-es8328: Register jacks at the card level 2015-03-04 17:09:52 +00:00
imx-mc13783.c ASoC: fsl: imx-mc13783: Simplify trivial if-return sequence 2015-05-11 16:13:45 +01:00
imx-pcm-dma.c ASoC: imx-pcm-dma: add NULL test 2015-12-23 00:01:53 +00:00
imx-pcm-fiq.c ASoC: fsl: imx-pcm-fiq: use correct format specifier 2016-04-13 06:39:11 +01:00
imx-pcm.h ASoC: fsl: Add dedicated DMA buffer size for each cpu dai 2015-07-07 13:16:12 +01:00
imx-sgtl5000.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
imx-spdif.c ASoC: imx-spdif: Fix crash on suspend 2016-01-27 11:30:02 +00:00
imx-ssi.c ASoC: imx-ssi: Fix DAI hardware signal inversions 2015-09-29 17:28:33 +01:00
imx-ssi.h
imx-wm8962.c ASoC: Vendor drivers get a link's runtime by snd_soc_get_pcm_runtime() 2015-11-18 18:32:24 +00:00
Kconfig ASoC: fsl: fix build failure 2016-06-03 00:28:15 +01:00
Makefile ASoC: fsl: add imx-es8328 machine driver 2014-08-16 17:18:07 -05:00
mpc5200_dma.c ASoC: mpc5200_dma: Don't overwrite ac97 device private_data 2014-11-18 15:26:05 +00:00
mpc5200_dma.h
mpc5200_psc_ac97.c ASoC: fsl-mpc5200: Use usleep_range() instead of msleep() 2016-01-22 16:48:34 +00:00
mpc5200_psc_ac97.h
mpc5200_psc_i2s.c ASoC: fsl: constify of_device_id array 2015-03-22 18:02:56 +00:00
mpc8610_hpcd.c ASoC: twl6040, fsl: use to_platform_device 2015-12-24 19:42:42 +00:00
mx27vis-aic32x4.c ASoC: mx27vis-aci32x4: Use static DAI format setup 2015-01-06 17:34:27 +00:00
p1022_ds.c ASoC: twl6040, fsl: use to_platform_device 2015-12-24 19:42:42 +00:00
p1022_rdk.c ASoC: twl6040, fsl: use to_platform_device 2015-12-24 19:42:42 +00:00
pcm030-audio-fabric.c ASoC: fsl: constify of_device_id array 2015-03-22 18:02:56 +00:00
phycore-ac97.c
wm1133-ev1.c ASoC: wm1133-ev1: Use card DAPM context to access widgets 2015-04-12 12:42:34 +01:00