OpenCloudOS-Kernel/drivers/media/pci
Bhumika Goyal 8b6fe20a5d [media] media: pci: constify vb2_ops structure
Declare vb2_ops structure as const as it is only stored in
the ops field of a vb2_queue structure. This field is of type
const, so vb2_ops structures having same properties can be made
const too.
Done using Coccinelle:

@r1 disable optional_qualifier@
identifier i;
position p;
@@
static struct vb2_ops i@p={...};

@ok1@
identifier r1.i;
position p;
struct sta2x11_vip vip;
struct vb2_queue q;
@@
(
vip.vb_vidq.ops=&i@p
|
q.ops=&i@p
)

@bad@
position p!={r1.p,ok1.p};
identifier r1.i;
@@
i@p

@depends on !bad disable optional_qualifier@
identifier r1.i;
@@
+const
struct vb2_ops i;

File size before:
   text	   data	    bss	    dec	    hex	filename
   8448	    440	      0	   8888	   22b8	media/pci/sta2x11/sta2x11_vip.o

File size after:
   text	   data	    bss	    dec	    hex	filename
   8552	    352	      0	   8904	   22c8	media/pci/sta2x11/sta2x11_vip.o

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-02-03 14:23:39 -02:00
..
b2c2 [media] b2c2: fix spelling mistake: "Contunuity" -> "Continuity" 2017-01-30 15:45:34 -02:00
bt8xx [media] bt8xx: Delete unnecessary variable initialisations in ca_send_message() 2017-02-03 09:20:11 -02:00
cobalt [media] cobalt: fix spelling mistake: "Celcius" -> "Celsius" 2017-01-30 15:45:06 -02:00
cx18 [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx88 [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
cx23885 [media] cx23885: attach md88ds3103 driver via i2c_client for DVBSky S952 2017-02-03 11:48:55 -02:00
cx25821 [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
ddbridge [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
dm1105 [media] media: fix dm1105.c build error 2017-01-31 07:57:14 -02:00
dt3155 [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00
ivtv [media] ivtv: mark DVB "borrowed" ioctls as deprecated 2017-02-03 07:08:24 -02:00
mantis [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
meye [media] media: pci: meye: set error code on failures 2017-02-03 08:01:30 -02:00
netup_unidvb [media] netup_unidvb: use module_pci_driver 2016-11-22 16:30:03 -02:00
ngene [media] ngene: drop ngene_link_reset() 2017-02-03 11:35:59 -02:00
pluto2 [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
pt1 [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
pt3 ktime: Cleanup ktime_set() usage 2016-12-25 17:21:22 +01:00
saa7134 [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
saa7146 [media] include/media: move driver interface headers to a separate dir 2015-11-17 06:57:29 -02:00
saa7164 [media] saa7164: "first image" should be "second image" in error message 2017-02-03 11:19:07 -02:00
smipcie [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
solo6x10 [media] solo6x10: use designated initializers 2017-01-31 07:43:53 -02:00
sta2x11 [media] media: pci: constify vb2_ops structure 2017-02-03 14:23:39 -02:00
ttpci [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
tw68 [media] tw68: don't break long lines 2016-10-21 09:29:44 -02:00
tw686x [media] tw686x: silent -Wformat-security warning 2017-02-03 07:20:19 -02:00
tw5864 [media] tw5864: crop picture width to 704 2016-10-24 18:02:54 -02:00
zoran [media] zoran: Clean up file handle in open() error path 2017-01-31 07:44:51 -02:00
Kconfig [media] pci: Add tw5864 driver 2016-08-24 11:17:22 -03:00
Makefile [media] pci: Add tw5864 driver 2016-08-24 11:17:22 -03:00