mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 12:25:31 +00:00
5c8d8c0192
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: Andrey Utkin <andrey.utkin@corp.bluecherry.net> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> |
||
---|---|---|
.. | ||
cx18-alsa-main.c | ||
cx18-alsa-mixer.c | ||
cx18-alsa-mixer.h | ||
cx18-alsa-pcm.c | ||
cx18-alsa-pcm.h | ||
cx18-alsa.h | ||
cx18-audio.c | ||
cx18-audio.h | ||
cx18-av-audio.c | ||
cx18-av-core.c | ||
cx18-av-core.h | ||
cx18-av-firmware.c | ||
cx18-av-vbi.c | ||
cx18-cards.c | ||
cx18-cards.h | ||
cx18-controls.c | ||
cx18-controls.h | ||
cx18-driver.c | ||
cx18-driver.h | ||
cx18-dvb.c | ||
cx18-dvb.h | ||
cx18-fileops.c | ||
cx18-fileops.h | ||
cx18-firmware.c | ||
cx18-firmware.h | ||
cx18-gpio.c | ||
cx18-gpio.h | ||
cx18-i2c.c | ||
cx18-i2c.h | ||
cx18-io.c | ||
cx18-io.h | ||
cx18-ioctl.c | ||
cx18-ioctl.h | ||
cx18-irq.c | ||
cx18-irq.h | ||
cx18-mailbox.c | ||
cx18-mailbox.h | ||
cx18-queue.c | ||
cx18-queue.h | ||
cx18-scb.c | ||
cx18-scb.h | ||
cx18-streams.c | ||
cx18-streams.h | ||
cx18-vbi.c | ||
cx18-vbi.h | ||
cx18-version.h | ||
cx18-video.c | ||
cx18-video.h | ||
cx23418.h | ||
Kconfig | ||
Makefile |