linux/drivers/media/usb/dvb-usb-v2
Julia Lawall 56e247a55a [media] mxl111sf-tuner: 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:28:26 -03:00
..
af9015.c Eliminate bad hash multipliers from hash_32() and hash_64() 2016-05-28 15:42:51 -04:00
af9015.h
af9035.c [media] af9035: fix dual tuner detection with PCTV 79e 2016-07-15 11:44:10 -03:00
af9035.h [media] af9035: fix dual tuner detection with PCTV 79e 2016-07-15 11:44:10 -03:00
anysee.c
anysee.h
au6610.c
au6610.h
az6007.c
ce6230.c
ce6230.h
dvb_usb_common.h [media] media: change email address 2016-01-25 12:01:08 -02:00
dvb_usb_core.c [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
dvb_usb_urb.c [media] media: change email address 2016-01-25 12:01:08 -02:00
dvb_usb.h [media] media: change email address 2016-01-25 12:01:08 -02:00
dvbsky.c [media] dvb-usb-dvbsky: add new product id for TT CT2-4650 CI 2016-02-01 09:06:10 -02:00
ec168.c
ec168.h
gl861.c
gl861.h
Kconfig [media] rtl28xxu: sort the config symbols which are auto-selected 2016-06-07 15:50:40 -03:00
lmedm04.c
lmedm04.h
Makefile
mxl111sf-demod.c [media] dvb_frontend: pass the props cache to get_frontend() as arg 2016-02-04 16:27:30 -02:00
mxl111sf-demod.h
mxl111sf-gpio.c
mxl111sf-gpio.h
mxl111sf-i2c.c
mxl111sf-i2c.h
mxl111sf-phy.c
mxl111sf-phy.h
mxl111sf-reg.h
mxl111sf-tuner.c [media] mxl111sf-tuner: constify dvb_tuner_ops structures 2016-09-19 16:28:26 -03:00
mxl111sf-tuner.h [media] drivers/media/usb/dvb-usb-v2: constify mxl111sf_tuner_config structure 2016-02-01 07:58:08 -02:00
mxl111sf.c [media] drivers/media/usb/dvb-usb-v2: constify mxl111sf_tuner_config structure 2016-02-01 07:58:08 -02:00
mxl111sf.h [media] mxl111sf: Add a tuner entity 2016-01-11 12:19:26 -02:00
rtl28xxu.c [media] rtl28xxu: increase failed I2C msg repeat count to 3 2016-06-07 15:39:46 -03:00
rtl28xxu.h
usb_urb.c [media] media: change email address 2016-01-25 12:01:08 -02:00