linux/drivers/media/pci
Julia Lawall 6688324841 media: cx18: constify videobuf_queue_ops structures
These videobuf_queue_ops structures are only passed as the second
argument to videobuf_queue_vmalloc_init, which is declared as const.
Thus the videobuf_queue_ops structures themselves can be const.

Done with the help of Coccinelle.

// <smpl>
@r disable optional_qualifier@
identifier i;
position p;
@@
static struct videobuf_queue_ops i@p = { ... };

@ok1@
identifier r.i;
expression e1;
position p;
@@
videobuf_queue_vmalloc_init(e1,&i@p,...)

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

@depends on !bad disable optional_qualifier@
identifier r.i;
@@
static
+const
 struct videobuf_queue_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:06:42 -04:00
..
b2c2 media: b2c2: constify pci_device_id 2017-08-09 09:46:30 -04:00
bt8xx media: bt8xx: bttv: constify pci_device_id 2017-08-09 09:45:48 -04:00
cobalt media: pci: make snd_pcm_hardware const 2017-08-20 08:05:21 -04:00
cx18 media: cx18: constify videobuf_queue_ops structures 2017-08-20 08:06:42 -04:00
cx88
cx23885 media: pci: make snd_pcm_hardware const 2017-08-20 08:05:21 -04:00
cx25821 media: pci: make snd_pcm_hardware const 2017-08-20 08:05:21 -04:00
ddbridge media: ddbridge: get rid of fall though gcc 7.1 warnings 2017-08-20 07:45:41 -04:00
dm1105 media: dm1105: constify pci_device_id 2017-08-09 09:45:01 -04:00
dt3155
ivtv media: pci: make snd_pcm_hardware const 2017-08-20 08:05:21 -04:00
mantis media: mantis: hopper_cards: constify pci_device_id 2017-08-09 09:47:26 -04:00
meye media: meye: constify pci_device_id 2017-08-09 09:44:32 -04:00
netup_unidvb media: netup_unidvb: constify pci_device_id 2017-08-09 09:43:38 -04:00
ngene
pluto2 media: pluto2: constify pci_device_id 2017-08-09 09:44:46 -04:00
pt1 media: pt1: constify pci_device_id 2017-08-09 09:46:57 -04:00
pt3
saa7134 media: pci: make snd_pcm_hardware const 2017-08-20 08:05:21 -04:00
saa7146 media: saa7146: hexium_gemini: constify pci_device_id 2017-08-09 09:50:55 -04:00
saa7164 media: saa7164: constify pci_device_id 2017-08-09 09:46:44 -04:00
smipcie
solo6x10 media: solo6x10: export hardware GPIO pins 8:31 to gpiolib interface 2017-08-09 10:29:51 -04:00
sta2x11
ttpci media: v4l2: av7110_v4l: constify v4l2_audio structure 2017-08-20 08:05:28 -04:00
tw68
tw686x
tw5864
zoran media: zoran: constify pci_device_id 2017-08-09 09:45:18 -04:00
Kconfig
Makefile