linux/drivers/media/pci/saa7164
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] saa7164: remove unused videobuf references 2015-10-01 08:25:06 -03:00
Makefile
saa7164-api.c [media] saa7164: Improvements for I2C handling" 2015-06-10 11:46:03 -03:00
saa7164-buffer.c [media] saa7164: Copyright update 2015-05-01 07:22:48 -03:00
saa7164-bus.c [media] saa7164: Copyright update 2015-05-01 07:22:48 -03:00
saa7164-cards.c [media] saa7164: change Si2168 reglen to 0 bit 2015-06-10 11:44:44 -03:00
saa7164-cmd.c [media] saa7164: Copyright update 2015-05-01 07:22:48 -03:00
saa7164-core.c various: fix pci_set_dma_mask return value checking 2015-11-20 16:17:32 -08:00
saa7164-dvb.c [media] si2157: support selection of IF interface 2015-05-12 13:20:55 -03:00
saa7164-encoder.c [media] saa7164: Replace if and BUG with BUG_ON 2016-07-08 16:16:54 -03:00
saa7164-fw.c [media] saa7164: Copyright update 2015-05-01 07:22:48 -03:00
saa7164-i2c.c [media] constify i2c_algorithm structures 2016-09-19 16:27:02 -03:00
saa7164-reg.h [media] saa7164: Copyright update 2015-05-01 07:22:48 -03:00
saa7164-types.h [media] saa7164: Copyright update 2015-05-01 07:22:48 -03:00
saa7164-vbi.c [media] saa7164: video and vbi ports share the same input/tuner/std 2015-10-01 08:26:53 -03:00
saa7164.h [media] saa7164: drop unused saa7164_ctrl struct 2016-07-12 11:11:28 -03:00