linux/drivers/media/pci/cx25821
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
..
cx25821-alsa.c [media] pci: constify snd_pcm_ops structures 2016-09-19 16:18:42 -03:00
cx25821-audio-upstream.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2013-05-01 17:51:54 -07:00
cx25821-audio-upstream.h
cx25821-audio.h
cx25821-biffuncs.h [media] cx25821: get rid of warning: no previous prototype 2012-10-27 18:02:07 -02:00
cx25821-cards.c [media] cx25821: fix sparse warnings 2013-10-17 06:16:46 -03:00
cx25821-core.c [media] media/pci: convert drivers to use the new vb2_queue dev field 2016-07-08 14:37:17 -03:00
cx25821-gpio.c [media] cx25821: remove bogus dependencies 2013-04-16 18:03:27 -03:00
cx25821-i2c.c [media] constify i2c_algorithm structures 2016-09-19 16:27:02 -03:00
cx25821-medusa-defines.h
cx25821-medusa-reg.h [media] cx25821: cx25821-medusa-reg.h: fix 0x0x prefix 2015-05-13 16:43:49 -03:00
cx25821-medusa-video.c [media] cx25821: fix sparse warnings 2013-10-17 06:16:46 -03:00
cx25821-medusa-video.h [media] cx25821: fix sparse warnings 2013-10-17 06:16:46 -03:00
cx25821-reg.h
cx25821-sram.h
cx25821-video-upstream.c [media] cx25821: fix sparse warning 2014-09-03 10:32:02 -03:00
cx25821-video-upstream.h
cx25821-video.c [media] pci: constify vb2_ops structures 2016-09-19 16:21:42 -03:00
cx25821-video.h [media] cx25821: setup output nodes correctly 2013-04-16 18:09:57 -03:00
cx25821.h [media] media/pci: convert drivers to use the new vb2_queue dev field 2016-07-08 14:37:17 -03:00
Kconfig [media] cx25821: convert to vb2 2014-12-23 10:17:47 -02:00
Makefile [media] cx25821: remove video output support 2014-12-23 10:22:00 -02:00