linux/drivers/media/usb
Julia Lawall 22511cfa7d [media] usb: constify snd_pcm_ops structures
Check for snd_pcm_ops structures that are only stored in the ops field of a
snd_soc_platform_driver structure or passed as the third argument to
snd_pcm_set_ops.  The corresponding field or parameter is declared const,
so snd_pcm_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 snd_pcm_ops i@p = { ... };

@ok1@
identifier r.i;
struct snd_soc_platform_driver e;
position p;
@@
e.ops = &i@p;

@ok2@
identifier r.i;
expression e1, e2;
position p;
@@
snd_pcm_set_ops(e1, e2, &i@p)

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

@depends on !bad disable optional_qualifier@
identifier r.i;
@@
static
+const
 struct snd_pcm_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>
2016-09-19 16:19:10 -03:00
..
airspy [media] media: usb: airspy: airspy: don't print error when allocating urb fails 2016-08-24 08:47:59 -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] media: usb: au0828: au0828-video: don't print error when allocating urb fails 2016-08-24 08:48:38 -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 snd_pcm_ops structures 2016-09-19 16:19:10 -03:00
go7007 [media] usb: constify snd_pcm_ops structures 2016-09-19 16:19:10 -03:00
gspca [media] gspca: finepix: Remove deprecated create_singlethread_workqueue 2016-08-24 09:30:21 -03:00
hackrf [media] drivers: hackrf: fixed a coding style issue 2016-08-25 09:45:27 -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] media: usb: msi2500: msi2500: don't print error when allocating urb fails 2016-08-24 09:24:58 -03:00
pvrusb2 [media] pvrusb2: convert g/s_crop to g/s_selection 2016-08-24 09:54:30 -03:00
pwc [media] media: usb: pwc: pwc-if: don't print error when allocating urb fails 2016-08-24 09:25:20 -03:00
s2255 [media] media: usb: s2255: s2255drv: don't print error when allocating urb fails 2016-08-24 09:25:42 -03:00
siano [media] media_device: move allocation out of media_device_*_init 2016-02-23 07:19:39 -03:00
stk1160 [media] media: usb: stk1160: stk1160-video: don't print error when allocating urb fails 2016-08-24 09:26:01 -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 snd_pcm_ops structures 2016-09-19 16:19:10 -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 Linux 4.7-rc6 2016-07-08 18:14:03 -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