linux/drivers/media/usb/go7007
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
Makefile
go7007-driver.c [media] media: videobuf2: Move timestamp to vb2_buffer 2015-12-18 13:53:31 -02:00
go7007-fw.c [media] go7007: Fix returned errno code in gen_mjpeghdr_to_package() 2015-10-01 08:32:52 -03:00
go7007-i2c.c [media] constify i2c_algorithm structures 2016-09-19 16:27:02 -03:00
go7007-loader.c
go7007-priv.h [media] go7007: constify go7007_hpi_ops structures 2016-02-01 07:34:07 -02:00
go7007-usb.c [media] constify i2c_algorithm structures 2016-09-19 16:27:02 -03:00
go7007-v4l2.c [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
s2250-board.c [media] Drop owner assignment from i2c_driver 2015-08-11 13:01:57 -03:00
snd-go7007.c [media] usb: constify snd_pcm_ops structures 2016-09-19 16:19:10 -03:00