remarkable-linux/drivers/media/radio/si4713
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
..
Kconfig [media] si4713: fix Kconfig dependencies 2014-03-28 18:06:55 -03:00
Makefile [media] si4713: Added the USB driver for Si4713 2013-12-18 06:37:57 -02:00
radio-platform-si4713.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
radio-usb-si4713.c [media] constify i2c_algorithm structures 2016-09-19 16:27:02 -03:00
si4713.c [media] si4713: fix error return code 2015-05-01 07:00:31 -03:00
si4713.h [media] include/media: move platform_data to linux/platform_data/media 2015-11-17 06:58:42 -02:00