linux_dsm_epyc7002/drivers/media/usb/stk1160
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] stk1160: Build as a module if SND is m and audio support is selected 2013-08-01 14:55:25 -03:00
Makefile
stk1160-ac97.c [media] stk1160: warrant a NUL terminated string 2014-04-08 11:00:52 -03:00
stk1160-core.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
stk1160-i2c.c [media] constify i2c_algorithm structures 2016-09-19 16:27:02 -03:00
stk1160-reg.h [media] stk1160: Add frame scaling support 2015-07-17 09:52:31 -03:00
stk1160-v4l.c [media] usb: constify vb2_ops structures 2016-09-19 16:20:35 -03:00
stk1160-video.c [media] media: usb: stk1160: stk1160-video: don't print error when allocating urb fails 2016-08-24 09:26:01 -03:00
stk1160.h [media] media: videobuf2: Restructure vb2_buffer 2015-10-01 09:04:43 -03:00