linux/sound/pci/ice1712
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
..
ak4xxx.c ALSA: Include linux/io.h instead of asm/io.h 2015-01-28 16:49:33 +01:00
amp.c ALSA: pci: remove __dev* attributes 2012-12-07 07:20:55 +01:00
amp.h
aureon.c ALSA: ice1724: Use snd_ctl_enum_info() 2014-10-21 09:02:50 +02:00
aureon.h
delta.c ALSA: i2c: constify snd_i2c_ops structures 2015-11-30 11:40:08 +01:00
delta.h ALSA: ice1712 - working M-Audio Delta 66E support 2010-12-09 08:40:01 +01:00
envy24ht.h ALSA: ice1724 - Create capture pcm only for ADC-enabled configurations 2012-01-11 08:56:59 +01:00
ews.c ALSA: ice1712: Use snd_ctl_enum_info() 2014-10-21 09:01:06 +02:00
ews.h [ALSA] ice1712 - Add Terrasoniq TS88 support 2008-04-24 12:00:40 +02:00
hoontech.c ALSA: ice1712: remove unneeded return statement 2014-11-14 14:16:36 +01:00
hoontech.h
ice1712.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
ice1712.h ALSA: ice1712: Correcting/completing #defines for REGS 2014-07-04 09:18:36 +02:00
ice1724.c ALSA: constify snd_pcm_ops structures 2016-09-02 11:49:10 +02:00
juli.c ALSA: ak411x: Add PM helper functions 2015-01-28 22:30:12 +01:00
juli.h
Makefile ALSA: ice1712: Add Philips PSC724 Ultimate Edge 2012-10-17 09:01:32 +02:00
maya44.c ALSA: ice1724: Use snd_ctl_enum_info() 2014-10-21 09:02:50 +02:00
maya44.h ALSA: ice1724 - Add ESI Maya44 support 2009-05-06 17:33:19 +02:00
phase.c ALSA: ice1724: Use snd_ctl_enum_info() 2014-10-21 09:02:50 +02:00
phase.h ALSA: ice1712/ice1724: Coding style fixes part 1 (more coming up) 2008-09-09 09:11:44 +02:00
pontis.c ALSA: ice1724: Use snd_ctl_enum_info() 2014-10-21 09:02:50 +02:00
pontis.h
prodigy192.c ALSA: ice1712: remove unneeded return statement 2014-11-14 14:16:36 +01:00
prodigy192.h
prodigy_hifi.c ALSA: ice1724: Use snd_ctl_enum_info() 2014-10-21 09:02:50 +02:00
prodigy_hifi.h [ALSA] ice1724 - Add missing prodigy_hifi.h 2008-01-31 17:30:03 +01:00
psc724.c ALSA: Use strlcpy() instead of strncpy() 2013-10-29 15:26:12 +01:00
psc724.h ALSA: ice1712: Add Philips PSC724 Ultimate Edge 2012-10-17 09:01:32 +02:00
quartet.c ALSA: pci: Drop superfluous ifdef CONFIG_PROC_FS 2015-05-29 08:00:06 +02:00
quartet.h ALSA: ice1724 - Infrasonic Quartet support 2009-09-21 15:49:04 +02:00
revo.c ALSA: ice1712: consider error value 2014-11-14 14:16:47 +01:00
revo.h
se.c ALSA: ice1724: Use snd_ctl_enum_info() 2014-10-21 09:02:50 +02:00
se.h [ALSA] ice1724 - Add support of Onkyo SE-90PCI and SE-200PCI 2008-01-31 17:29:09 +01:00
stac946x.h
vt1720_mobo.c ALSA: pci: remove __dev* attributes 2012-12-07 07:20:55 +01:00
vt1720_mobo.h
wm8766.c ALSA: ice1712: wm8766: Remove some unused functions 2015-01-11 17:03:52 +01:00
wm8766.h ALSA: ice1712: wm8766: Remove some unused functions 2015-01-11 17:03:52 +01:00
wm8776.c ALSA: ice1712: wm8776.c: Remove some unused functions 2014-12-26 12:22:09 +01:00
wm8776.h ALSA: ice1712: wm8776.c: Remove some unused functions 2014-12-26 12:22:09 +01:00
wtm.c ALSA: ice1724: ESI W192M: Add sampling rate control of the ADC/DAC 2015-03-18 08:07:00 +01:00
wtm.h ALSA: ice1712/wtm: fix coding style 2008-09-09 09:11:39 +02:00