linux/drivers/media/usb/go7007
Julia Lawall 1bc177174b [media] usb: 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>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-09-19 16:20:35 -03:00
..
go7007-driver.c [media] media: videobuf2: Move timestamp to vb2_buffer 2015-12-18 13:53:31 -02:00
go7007-fw.c [media] go7007: Fix returned errno code in gen_mjpeghdr_to_package() 2015-10-01 08:32:52 -03:00
go7007-i2c.c
go7007-loader.c
go7007-priv.h [media] go7007: constify go7007_hpi_ops structures 2016-02-01 07:34:07 -02:00
go7007-usb.c [media] go7007: constify go7007_hpi_ops structures 2016-02-01 07:34:07 -02:00
go7007-v4l2.c [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
Kconfig
Makefile
s2250-board.c [media] Drop owner assignment from i2c_driver 2015-08-11 13:01:57 -03:00
snd-go7007.c [media] usb: constify snd_pcm_ops structures 2016-09-19 16:19:10 -03:00