linux/drivers/media/usb
Julia Lawall 1bc177174b [media] usb: constify vb2_ops structures
Check for vb2_ops structures that are only stored in the ops field of a
vb2_queue structure.  That field is declared const, so vb2_ops structures
that have this property can be declared as const also.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

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

@ok@
identifier r.i;
struct vb2_queue e;
position p;
@@
e.ops = &i@p;

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

@depends on !bad disable optional_qualifier@
identifier r.i;
@@
static
+const
 struct vb2_ops i = { ... };
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-09-19 16:20:35 -03:00
..
airspy [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
as102 [media] media: usb: as102: as102_usb_drv: don't print error when allocating urb fails 2016-08-24 08:48:19 -03:00
au0828 [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
b2c2 [media] media: change email address 2016-01-25 12:01:08 -02:00
cpia2 [media] media: usb: cpia2: cpia2_usb: don't print error when allocating urb fails 2016-08-24 08:48:56 -03:00
cx231xx [media] usb: constify snd_pcm_ops structures 2016-09-19 16:19:10 -03:00
dvb-usb [media] media: usb: dvb-usb: dib0700_core: don't print error when allocating urb fails 2016-08-24 08:50:15 -03:00
dvb-usb-v2 [media] media: usb: dvb-usb-v2: dvb_usb_core: don't print error when adding adapter fails 2016-08-24 13:57:58 -03:00
em28xx [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
go7007 [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
gspca [media] gspca: finepix: Remove deprecated create_singlethread_workqueue 2016-08-24 09:30:21 -03:00
hackrf [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
hdpvr [media] media: usb: hdpvr: hdpvr-video: don't print error when allocating urb fails 2016-08-24 09:24:40 -03:00
msi2500 [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
pvrusb2 [media] pvrusb2: convert g/s_crop to g/s_selection 2016-08-24 09:54:30 -03:00
pwc [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
s2255 [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
siano [media] media_device: move allocation out of media_device_*_init 2016-02-23 07:19:39 -03:00
stk1160 [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
stkwebcam [media] media: usb: stkwebcam: stk-webcam: don't print error when allocating urb fails 2016-08-24 09:26:20 -03:00
tm6000 [media] usb: constify snd_pcm_ops structures 2016-09-19 16:19:10 -03:00
ttusb-budget [media] dvb: Get rid of typedev usage for enums 2015-06-09 17:47:35 -03:00
ttusb-dec [media] ttusb-dec: constify ttusbdecfe_config structure 2015-11-19 11:22:15 -02:00
usbtv [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
usbvision [media] media: usb: usbvision: usbvision-core: don't print error when allocating urb fails 2016-08-24 09:27:16 -03:00
uvc [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
zr364xx [media] media: usb: zr364xx: zr364xx: don't print error when allocating urb fails 2016-08-24 09:27:34 -03:00
Kconfig [media] tlg2300: move to staging in preparation for removal 2014-12-16 23:21:43 -02:00
Makefile [media] tlg2300: move to staging in preparation for removal 2014-12-16 23:21:43 -02:00