linux/drivers/media/platform/davinci
Julia Lawall c236323dfc media: davinci: vpbe: constify vb2_ops structures
These vb2_ops structures are only stored in the ops field of a
vb2_queue structure, which is declared as const.  Thus the vb2_ops
structures themselves can be const.

Done with the help of Coccinelle.

// <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>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-08-20 08:03:27 -04:00
..
ccdc_hw_device.h media: platform: davinci: drop VPFE_CMD_S_CCDC_RAW_PARAMS 2017-07-20 15:56:32 -04:00
dm355_ccdc_regs.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
dm355_ccdc.c media: platform: davinci: drop VPFE_CMD_S_CCDC_RAW_PARAMS 2017-07-20 15:56:32 -04:00
dm644x_ccdc_regs.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
dm644x_ccdc.c media: platform: davinci: drop VPFE_CMD_S_CCDC_RAW_PARAMS 2017-07-20 15:56:32 -04:00
isif_regs.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
isif.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
Kconfig [media] davinci: Switch from V4L2 OF to V4L2 fwnode 2017-06-08 12:34:16 -03:00
Makefile
vpbe_display.c media: davinci: vpbe: constify vb2_ops structures 2017-08-20 08:03:27 -04:00
vpbe_osd_regs.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
vpbe_osd.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
vpbe_venc_regs.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
vpbe_venc.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
vpbe.c media: DaVinci-VPBE: constify vpbe_dev_ops 2017-08-09 10:33:51 -04:00
vpfe_capture.c media: platform: davinci: drop VPFE_CMD_S_CCDC_RAW_PARAMS 2017-07-20 15:56:32 -04:00
vpif_capture.c media: davinci: vpif_capture: fix potential NULL deref 2017-07-19 15:13:04 -04:00
vpif_capture.h [media] davinci: vpif_capture: fix start/stop streaming locking 2017-01-31 08:01:07 -02:00
vpif_display.c media: davinci: vpif_display: constify vb2_ops structure 2017-07-19 15:09:39 -04:00
vpif_display.h [media] media/platform: convert drivers to use the new vb2_queue dev field 2016-07-08 14:39:21 -03:00
vpif.c [media] davinci: vpif: adaptions for DT support 2017-06-20 09:05:37 -03:00
vpif.h
vpss.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00