linux_dsm_epyc7002/drivers/media/common
Gustavo A. R. Silva ea925e4db1 media: saa7146: 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:55:14 -04:00
..
b2c2 [media] b2c2: constify nxt200x_config structure 2017-04-17 12:18:18 -03:00
saa7146 media: saa7146: constify i2c_algorithm structure 2017-07-20 14:55:14 -04:00
siano [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
v4l2-tpg [media] v4l2-tpg: don't clamp XV601/709 to lim range 2017-04-10 14:58:06 -03:00
btcx-risc.h [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
cx2341x.c [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cypress_firmware.c [media] media: change email address 2016-01-25 12:01:08 -02:00
cypress_firmware.h [media] media: change email address 2016-01-25 12:01:08 -02:00
Kconfig [media] tpg: Export the tpg code from vivid as a module 2016-04-20 16:14:39 -03:00
Makefile [media] tpg: Export the tpg code from vivid as a module 2016-04-20 16:14:39 -03:00
tveeprom.c [media] tveeprom: get rid of unused arg on tveeprom_hauppauge_analog() 2017-03-03 07:35:02 -03:00