linux/drivers/media/usb
Julia Lawall 63f2ec67fa media: tm6000: 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:07:30 -04:00
..
airspy media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
as102 media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
au0828 media: : usb: add const to v4l2_file_operations structures 2017-07-20 16:45:25 -04:00
b2c2 media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
cpia2 media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
cx231xx media: cx231xx: constify videobuf_queue_ops structures 2017-08-20 08:06:58 -04:00
dvb-usb media: dib0700: fix error handling in dib0700_i2c_xfer_legacy() 2017-06-24 15:41:57 -03:00
dvb-usb-v2 media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
em28xx media: usb: make snd_pcm_hardware const 2017-08-20 08:05:10 -04:00
go7007 media: usb: make snd_pcm_hardware const 2017-08-20 08:05:10 -04:00
gspca media: : usb: add const to v4l2_file_operations structures 2017-07-20 16:45:25 -04:00
hackrf media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
hdpvr media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
msi2500 media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
pulse8-cec media: adv*/vivid/pulse8/rainshadow: cec: use CEC_CAP_DEFAULTS 2017-08-09 09:37:46 -04:00
pvrusb2 media: pvrusb2: fix the retry logic 2017-07-20 16:25:41 -04:00
pwc [media] media drivers: annotate fall-through 2017-05-19 07:10:03 -03:00
rainshadow-cec media: adv*/vivid/pulse8/rainshadow: cec: use CEC_CAP_DEFAULTS 2017-08-09 09:37:46 -04:00
s2255 media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
siano [media] siano: make it work again with CONFIG_VMAP_STACK 2017-02-14 18:13:49 -02:00
stk1160 media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
stkwebcam media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
tm6000 media: tm6000: constify videobuf_queue_ops structures 2017-08-20 08:07:30 -04:00
ttusb-budget media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
ttusb-dec media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
usbtv media: usb: make snd_pcm_hardware const 2017-08-20 08:05:10 -04:00
usbvision media: usbvision: constify i2c_algorithm structure 2017-07-20 14:53:00 -04:00
uvc media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
zr364xx media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
Kconfig [media] rainshadow-cec: new RainShadow Tech HDMI CEC driver 2017-04-10 12:42:10 -03:00
Makefile [media] rainshadow-cec: new RainShadow Tech HDMI CEC driver 2017-04-10 12:42:10 -03:00