linux/drivers/media/pci/cx25821
Julia Lawall 10accd2e68 [media] pci: constify vb2_ops structures
Check for vb2_ops structures that are only stored in the ops field of a
vb2_queue structure.  That field is declared const, so vb2_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 vb2_ops i@p = { ... };

@ok@
identifier r.i;
struct vb2_queue e;
position p;
@@
e.ops = &i@p;

@bad@
position p != {r.p,ok.p};
identifier r.i;
struct vb2_ops e;
@@
e@i@p

@depends on !bad disable optional_qualifier@
identifier r.i;
@@
static
+const
 struct vb2_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>
2016-09-19 16:21:42 -03:00
..
cx25821-alsa.c [media] pci: constify snd_pcm_ops structures 2016-09-19 16:18:42 -03:00
cx25821-audio-upstream.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2013-05-01 17:51:54 -07:00
cx25821-audio-upstream.h
cx25821-audio.h
cx25821-biffuncs.h [media] cx25821: get rid of warning: no previous prototype 2012-10-27 18:02:07 -02:00
cx25821-cards.c [media] cx25821: fix sparse warnings 2013-10-17 06:16:46 -03:00
cx25821-core.c [media] media/pci: convert drivers to use the new vb2_queue dev field 2016-07-08 14:37:17 -03:00
cx25821-gpio.c [media] cx25821: remove bogus dependencies 2013-04-16 18:03:27 -03:00
cx25821-i2c.c [media] cx25821: remove bogus dependencies 2013-04-16 18:03:27 -03:00
cx25821-medusa-defines.h
cx25821-medusa-reg.h [media] cx25821: cx25821-medusa-reg.h: fix 0x0x prefix 2015-05-13 16:43:49 -03:00
cx25821-medusa-video.c [media] cx25821: fix sparse warnings 2013-10-17 06:16:46 -03:00
cx25821-medusa-video.h [media] cx25821: fix sparse warnings 2013-10-17 06:16:46 -03:00
cx25821-reg.h
cx25821-sram.h
cx25821-video-upstream.c [media] cx25821: fix sparse warning 2014-09-03 10:32:02 -03:00
cx25821-video-upstream.h
cx25821-video.c [media] pci: constify vb2_ops structures 2016-09-19 16:21:42 -03:00
cx25821-video.h [media] cx25821: setup output nodes correctly 2013-04-16 18:09:57 -03:00
cx25821.h [media] media/pci: convert drivers to use the new vb2_queue dev field 2016-07-08 14:37:17 -03:00
Kconfig [media] cx25821: convert to vb2 2014-12-23 10:17:47 -02:00
Makefile [media] cx25821: remove video output support 2014-12-23 10:22:00 -02:00