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 [media] cx88: Fix regression in initial video standard setting 2017-06-06 07:26:25 -03:00
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 [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00
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 media: ngene: constify i2c_algorithm structure 2017-07-20 14:59:58 -04:00
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 media: media/dvb: earth-pt3: fix hang-up in a rare case 2017-07-20 15:01:30 -04:00
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 [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
solo6x10 media: solo6x10: export hardware GPIO pins 8:31 to gpiolib interface 2017-08-09 10:29:51 -04:00
sta2x11 [media] media: pci: constify vb2_ops structure 2017-02-03 14:23:39 -02:00
ttpci media: v4l2: av7110_v4l: constify v4l2_audio structure 2017-08-20 08:05:28 -04: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, fc0011: better handle WARN_ON() 2017-06-24 16:19:27 -03:00
zoran media: zoran: constify pci_device_id 2017-08-09 09:45:18 -04: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