linux/drivers/media/platform/ti-vpe
Bhumika Goyal 5303135c17 media: platform: make video_device const
Make these const as they are only used during a copy operation.
Done using Coccinelle:

@match disable optional_qualifier@
identifier s;
@@
static struct video_device s = {...};

@ref@
position p;
identifier match.s;
@@
s@p

@good1@
identifier match.s;
expression list[3] es;
position ref.p;
@@
cx88_vdev_init(es,&s@p,...)

@good2@
position ref.p;
identifier match.s,f,c;
expression e;
@@
(
e = s@p
|
e = s@p.f
|
c(...,s@p.f,...)
|
c(...,s@p,...)
)

@bad depends on  !good1 && !good2@
position ref.p;
identifier match.s;
@@
s@p

@depends on forall !bad disable optional_qualifier@
identifier match.s;
@@
static
+ const
struct video_device s;

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-08-27 08:44:30 -04:00
..
Makefile [media] media: ti-vpe: Make colorspace converter library into its own module 2016-11-22 08:11:25 -02:00
cal.c media: platform: make video_device const 2017-08-27 08:44:30 -04:00
cal_regs.h [media] media: ti-vpe: Add CAL v4l2 camera capture driver 2016-02-01 08:45:26 -02:00
csc.c [media] media: ti-vpe: csc: Add debug support for multi-instance 2016-11-22 08:12:24 -02:00
csc.h [media] media: ti-vpe: Make colorspace converter library into its own module 2016-11-22 08:11:25 -02:00
sc.c [media] media: ti-vpe: scaler: Add debug support for multi-instance 2016-11-22 08:09:33 -02:00
sc.h [media] media: ti-vpe: vpe: Make sure frame size dont exceed scaler capacity 2016-11-22 08:10:14 -02:00
sc_coeff.h [media] v4l: ti-vpe: support loading of scaler coefficients 2014-01-07 06:54:48 -02:00
vpdma.c [media] media: ti-vpe: vpdma: add support for user specified stride 2017-03-03 14:42:42 -03:00
vpdma.h [media] media: ti-vpe: vpdma: add support for user specified stride 2017-03-03 14:42:42 -03:00
vpdma_priv.h [media] media: ti-vpe: vpdma: RGB data type yield inverted data 2016-11-22 08:05:59 -02:00
vpe.c media: platform: make video_device const 2017-08-27 08:44:30 -04:00
vpe_regs.h [media] v4l: ti-vpe: create a color space converter block library 2014-01-07 06:56:18 -02:00