remarkable-linux/drivers/media
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
..
common [media] v4l2-tpg-core: drop SYCC, use higher precision 601 conversion matrix 2016-08-24 08:36:11 -03:00
dvb-core [media] demux.h: fix a documentation warning 2016-09-09 09:23:32 -03:00
dvb-frontends [media] dvb-frontends: constify dvb_tuner_ops structures 2016-09-19 16:22:55 -03:00
firewire
i2c [media] ad5820: use __maybe_unused for PM functions 2016-09-19 16:25:13 -03:00
mmc
pci [media] constify i2c_algorithm structures 2016-09-19 16:27:02 -03:00
platform [media] atmel-isc: mark PM functions as __maybe_unused 2016-09-19 16:25:33 -03:00
radio [media] constify i2c_algorithm structures 2016-09-19 16:27:02 -03:00
rc [media] redrat3: fix sparse warning 2016-08-25 09:46:39 -03:00
spi [media] gs1662: make checkpatch happy 2016-09-19 14:39:49 -03:00
tuners [media] tuners: constify dvb_tuner_ops structures 2016-09-19 16:23:21 -03:00
usb [media] constify i2c_algorithm structures 2016-09-19 16:27:02 -03:00
v4l2-core [media] SDI: add flag for SDI formats and SMPTE 125M definition 2016-09-19 14:34:41 -03:00
cec-edid.c [media] cec-edid: add module for EDID CEC helper functions 2016-06-28 09:45:51 -03:00
Kconfig [media] media Kconfig: improve the spi integration 2016-09-19 14:37:05 -03:00
Makefile [media] Add GS1662 driver, a video serializer 2016-09-19 14:36:24 -03:00
media-device.c [media] media: fix media devnode ioctl/syscall and unregister race 2016-06-15 17:59:28 -03:00
media-devnode.c [media] media: fix media devnode ioctl/syscall and unregister race 2016-06-15 17:59:28 -03:00
media-entity.c [media] media: Move media_device link_notify operation to an ops structure 2016-09-09 11:20:09 -03:00