linux/drivers/media/pci
Gustavo A. R. Silva 3c13978ead media: dm1105: constify i2c_algorithm structure
Check for i2c_algorithm structures that are only stored in
the algo field of an i2c_adapter structure. This field is
declared const, so i2c_algorithm structures that have this
property can be declared as const also.

This issue was identified using Coccinelle and the following
semantic patch:

@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.algo = &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 = { ... };

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-07-20 14:58:58 -04:00
..
b2c2 [media] b2c2: fix spelling mistake: "Contunuity" -> "Continuity" 2017-01-30 15:45:34 -02:00
bt8xx [media] bt8xx: add missing break 2017-05-19 07:08:25 -03:00
cobalt [media] cobalt: fix unchecked return values 2017-06-06 07:29:15 -03:00
cx18 [media] cx18: Fix a sleep-in-atomic bug in snd_cx18_pcm_hw_free 2017-06-07 12:28:50 -03:00
cx88 [media] cx88: Fix regression in initial video standard setting 2017-06-06 07:26:25 -03:00
cx23885 media: cx23885: add const to v4l2_file_operations structure 2017-07-19 14:56:41 -04:00
cx25821 [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
ddbridge media: ddbridge: constify i2c_algorithm structure 2017-07-20 14:58:43 -04:00
dm1105 media: dm1105: constify i2c_algorithm structure 2017-07-20 14:58:58 -04:00
dt3155 [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00
ivtv [media] ivtv: Fix a sleep-in-atomic bug in snd_ivtv_pcm_hw_free 2017-06-07 12:28:49 -03:00
mantis [media] pci: mantis: constify mb86a16_config structure 2017-04-17 12:53:03 -03:00
meye [media] media: pci: meye: set error code on failures 2017-02-03 08:01:30 -02:00
netup_unidvb [media] dvb-frontends/cxd2841er: make ASCOT use optional 2017-06-20 09:50:06 -03:00
ngene media: ngene: Replace semaphore i2c_switch_mutex with mutex 2017-06-24 16:42:34 -03:00
pluto2 [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
pt1 sched/headers: Prepare to move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h> 2017-03-02 08:42:32 +01:00
pt3 sched/headers: Prepare to move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h> 2017-03-02 08:42:32 +01:00
saa7134 [media] media drivers: annotate fall-through 2017-05-19 07:10:03 -03:00
saa7146 [media] include/media: move driver interface headers to a separate dir 2015-11-17 06:57:29 -02:00
saa7164 [media] saa7164: fix double fetch PCIe access condition 2017-06-06 16:55:50 -03:00
smipcie [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
solo6x10 media: solo6x10: fix detection of TW2864B chips 2017-07-20 06:53:34 -04:00
sta2x11 [media] media: pci: constify vb2_ops structure 2017-02-03 14:23:39 -02:00
ttpci [media] av7110: avoid switch fall through 2017-05-19 09:01:24 -03:00
tw68 [media] tw68: don't break long lines 2016-10-21 09:29:44 -02:00
tw686x [media] tw686x: silent -Wformat-security warning 2017-02-03 07:20:19 -02:00
tw5864 media: tw5864, fc0011: better handle WARN_ON() 2017-06-24 16:19:27 -03:00
zoran [media] zoran: annotate switch fall through 2017-05-19 09:02:13 -03:00
Kconfig [media] pci: Add tw5864 driver 2016-08-24 11:17:22 -03:00
Makefile [media] pci: Add tw5864 driver 2016-08-24 11:17:22 -03:00