mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 14:52:05 +00:00
e46ab9dc4a
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> |
||
---|---|---|
.. | ||
hopper_cards.c | ||
hopper_vp3028.c | ||
hopper_vp3028.h | ||
Kconfig | ||
Makefile | ||
mantis_ca.c | ||
mantis_ca.h | ||
mantis_cards.c | ||
mantis_common.h | ||
mantis_core.c | ||
mantis_core.h | ||
mantis_dma.c | ||
mantis_dma.h | ||
mantis_dvb.c | ||
mantis_dvb.h | ||
mantis_evm.c | ||
mantis_hif.c | ||
mantis_hif.h | ||
mantis_i2c.c | ||
mantis_i2c.h | ||
mantis_input.c | ||
mantis_input.h | ||
mantis_ioc.c | ||
mantis_ioc.h | ||
mantis_link.h | ||
mantis_pci.c | ||
mantis_pci.h | ||
mantis_pcmcia.c | ||
mantis_reg.h | ||
mantis_uart.c | ||
mantis_uart.h | ||
mantis_vp1033.c | ||
mantis_vp1033.h | ||
mantis_vp1034.c | ||
mantis_vp1034.h | ||
mantis_vp1041.c | ||
mantis_vp1041.h | ||
mantis_vp2033.c | ||
mantis_vp2033.h | ||
mantis_vp2040.c | ||
mantis_vp2040.h | ||
mantis_vp3028.c | ||
mantis_vp3028.h | ||
mantis_vp3030.c | ||
mantis_vp3030.h |