OpenCloudOS-Kernel/drivers/media
Julia Lawall 14c4bf3c6f [media] dvb-frontends: constify dvb_tuner_ops structures
These structures are only used to copy into other structures, so declare
them as const.

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 dvb_tuner_ops i@p = { ... };

@ok1@
identifier r.i;
expression e;
position p;
@@
e = i@p

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

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

@depends on !bad disable optional_qualifier@
identifier r.i;
@@
static
+const
 struct dvb_tuner_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:22:55 -03:00
..
common [media] v4l2-tpg-core: drop SYCC, use higher precision 601 conversion matrix 2016-08-24 08:36:11 -03:00
dvb-core [media] demux.h: fix a documentation warning 2016-09-09 09:23:32 -03:00
dvb-frontends [media] dvb-frontends: constify dvb_tuner_ops structures 2016-09-19 16:22:55 -03:00
firewire [media] dvb: modify core to implement interfaces/entities at MC new gen 2016-01-11 12:18:52 -02:00
i2c [media] constify local structures 2016-09-19 16:22:18 -03:00
mmc [media] siano: register media controller earlier 2015-02-26 09:10:39 -03:00
pci [media] constify local structures 2016-09-19 16:22:18 -03:00
platform [media] platform: constify vb2_ops structures 2016-09-19 16:21:06 -03:00
radio [media] radio-si470x-i2c: Delete owner assignment 2016-09-06 16:23:19 -03:00
rc [media] redrat3: fix sparse warning 2016-08-25 09:46:39 -03:00
spi [media] gs1662: make checkpatch happy 2016-09-19 14:39:49 -03:00
tuners [media] tea5767: use module prefix on printed messages 2016-09-05 15:26:28 -03:00
usb [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
v4l2-core [media] SDI: add flag for SDI formats and SMPTE 125M definition 2016-09-19 14:34:41 -03:00
Kconfig [media] media Kconfig: improve the spi integration 2016-09-19 14:37:05 -03:00
Makefile [media] Add GS1662 driver, a video serializer 2016-09-19 14:36:24 -03:00
cec-edid.c [media] cec-edid: add module for EDID CEC helper functions 2016-06-28 09:45:51 -03:00
media-device.c [media] media: fix media devnode ioctl/syscall and unregister race 2016-06-15 17:59:28 -03:00
media-devnode.c [media] media: fix media devnode ioctl/syscall and unregister race 2016-06-15 17:59:28 -03:00
media-entity.c [media] media: Move media_device link_notify operation to an ops structure 2016-09-09 11:20:09 -03:00