linux/drivers/media/usb/hdpvr
Julia Lawall 78f2c50bb4 [media] constify i2c_algorithm structures
These i2c_algorithm structures are only stored in the alg field of an
i2c_adapter structure, which is declared as const.  This declare the
structures as const as well.

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

@ok@
identifier r.i;
struct i2c_adapter e;
position p;
@@
e.alg = &i@p;

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

@depends on !bad disable optional_qualifier@
identifier r.i;
@@
static
+const
 struct i2c_algorithm 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:27:02 -03:00
..
hdpvr-control.c [media] hdpvr: reduce memory footprint when debugging 2014-09-23 16:13:36 -03:00
hdpvr-core.c [media] hdpvr: Remove deprecated create_singlethread_workqueue 2016-07-08 15:02:57 -03:00
hdpvr-i2c.c [media] constify i2c_algorithm structures 2016-09-19 16:27:02 -03:00
hdpvr-video.c [media] media: usb: hdpvr: hdpvr-video: don't print error when allocating urb fails 2016-08-24 09:24:40 -03:00
hdpvr.h [media] hdpvr: Remove deprecated create_singlethread_workqueue 2016-07-08 15:02:57 -03:00
Kconfig [media] media: fix hdpvr kconfig/build errors 2013-05-27 08:51:27 -03:00
Makefile