linux-stable/drivers/media
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
..
cec media: cec-api: log the reason for the -EINVAL in cec_s_mode 2017-08-09 09:41:44 -04:00
common media: v4l2-tpg: fix the SMPTE-2084 transfer function 2017-08-08 07:05:09 -04:00
dvb-core media: dvb-core/demux.h: fix kernel-doc warning 2017-07-21 08:01:08 -04:00
dvb-frontends media: dvb-frontends/cxd2841er: update moddesc wrt new chip support 2017-08-20 07:43:43 -04:00
firewire
i2c media: vs6624: constify vs6624_default_fmt 2017-08-09 11:19:20 -04:00
mmc
pci media: cx18: constify videobuf_queue_ops structures 2017-08-20 08:06:42 -04:00
platform media: pxa_camera: constify v4l2_clk_ops structure 2017-08-20 08:05:31 -04:00
radio media: radio: constify usb_device_id 2017-08-20 08:04:59 -04:00
rc media: lirc: LIRC_GET_REC_RESOLUTION should return microseconds 2017-07-26 05:46:42 -04:00
spi
tuners media: tuners: make snd_pcm_hardware const 2017-08-20 08:05:25 -04:00
usb media: tm6000: constify videobuf_queue_ops structures 2017-08-20 08:07:30 -04:00
v4l2-core media: v4l2-compat-ioctl32: Fix timespec conversion 2017-08-09 10:36:44 -04:00
Kconfig media: cec-pin: add low-level pin hardware support 2017-07-18 12:57:18 -03:00
Makefile [media] cec: select CEC_CORE instead of depend on it 2017-06-04 15:23:33 -03:00
media-device.c media: drop use of MEDIA_API_VERSION 2017-08-08 06:03:15 -04:00
media-devnode.c media: utilize new cdev_device_add helper function 2017-03-21 06:44:33 +01:00
media-entity.c media: Make parameter of media_entity_remote_pad() const 2017-07-20 16:54:04 -04:00