alistair23-linux/drivers/pcmcia
Márton Németh 63c9a8b302 pcmcia: make Open Firmware device id constant
The match_table field of the struct of_device_id is constant in <linux/of_platform.h>
so it is worth to make the initialization data also constant.

The semantic match that finds this kind of pattern is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@r@
disable decl_init,const_decl_init;
identifier I1, I2, x;
@@
	struct I1 {
	  ...
	  const struct I2 *x;
	  ...
	};
@s@
identifier r.I1, y;
identifier r.x, E;
@@
	struct I1 y = {
	  .x = E,
	};
@c@
identifier r.I2;
identifier s.E;
@@
	const struct I2 E[] = ... ;
@depends on !c@
identifier r.I2;
identifier s.E;
@@
+	const
	struct I2 E[] = ...;
// </smpl>

Signed-off-by: Márton Németh <nm127@freemail.hu>
Cc: Julia Lawall <julia@diku.dk>
Cc: cocci@diku.dk
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
2010-02-17 17:37:34 +01:00
..
at91_cf.c
au1000_db1x00.c
au1000_generic.c
au1000_generic.h
au1000_pb1x00.c
au1000_xxs1500.c
bcm63xx_pcmcia.c
bcm63xx_pcmcia.h
bfin_cf_pcmcia.c
cardbus.c pcmcia: CardBus doesn't need CIS access 2010-01-17 18:30:13 +01:00
cirrus.h pcmcia: drop already defined PCI_IDs 2009-10-24 17:13:01 +02:00
cistpl.c pcmcia: move cistpl.c into pcmcia module 2010-02-17 17:37:30 +01:00
cs.c pcmcia: remove useless indirection 2010-01-24 19:57:54 +01:00
cs_internal.h pcmcia: remove remaining rsrc_mgr indirections 2010-02-17 17:37:31 +01:00
ds.c pcmcia: move cistpl.c into pcmcia module 2010-02-17 17:37:30 +01:00
electra_cf.c pcmcia: make Open Firmware device id constant 2010-02-17 17:37:34 +01:00
i82092.c
i82092aa.h
i82365.c pcmcia: use dynamic debug in PCMCIA socket drivers 2009-11-08 18:23:13 +01:00
i82365.h
Kconfig pcmcia: fix yenta dependency on PCCARD_NONSTATIC 2010-02-17 17:37:32 +01:00
m8xx_pcmcia.c pcmcia: make Open Firmware device id constant 2010-02-17 17:37:34 +01:00
m32r_cfc.c pcmcia: m32r uses static socket resources 2010-01-24 19:57:56 +01:00
m32r_cfc.h
m32r_pcc.c pcmcia: use dynamic debug in PCMCIA socket drivers 2009-11-08 18:23:13 +01:00
m32r_pcc.h
Makefile pcmcia: move cistpl.c into pcmcia module 2010-02-17 17:37:30 +01:00
o2micro.h pcmcia: drop already defined PCI_IDs 2009-10-24 17:13:01 +02:00
omap_cf.c omap: headers: Move remaining headers from include/mach to include/plat 2009-10-20 09:40:47 -07:00
pcmcia_ioctl.c pcmcia: CodingStyle fixes 2009-12-07 22:23:40 +01:00
pcmcia_resource.c pcmcia: remove remaining rsrc_mgr indirections 2010-02-17 17:37:31 +01:00
pd6729.c pcmcia: use dev_dbg and dev_print in pd6729.c 2009-11-09 08:30:07 +01:00
pd6729.h pcmcia: use dev_dbg and dev_print in pd6729.c 2009-11-09 08:30:07 +01:00
pxa2xx_base.c PCMCIA: fix pxa2xx_lubbock modular build error 2009-12-16 20:11:02 +00:00
pxa2xx_base.h PCMCIA: fix pxa2xx_lubbock modular build error 2009-12-12 10:08:12 +00:00
pxa2xx_cm_x2xx.c
pxa2xx_cm_x255.c PCMCIA: stop duplicating pci_irq in soc_pcmcia_socket 2009-11-09 08:30:16 +01:00
pxa2xx_cm_x270.c PCMCIA: stop duplicating pci_irq in soc_pcmcia_socket 2009-11-09 08:30:16 +01:00
pxa2xx_e740.c PCMCIA: stop duplicating pci_irq in soc_pcmcia_socket 2009-11-09 08:30:16 +01:00
pxa2xx_lubbock.c PCMCIA: sa1111: remove duplicated initializers 2009-11-09 08:30:12 +01:00
pxa2xx_mainstone.c PCMCIA: stop duplicating pci_irq in soc_pcmcia_socket 2009-11-09 08:30:16 +01:00
pxa2xx_palmld.c PCMCIA: stop duplicating pci_irq in soc_pcmcia_socket 2009-11-09 08:30:16 +01:00
pxa2xx_palmtc.c ARM: pxa: fix now incorrect reference of skt->irq by using skt->socket.pci_irq 2009-12-13 16:33:13 +00:00
pxa2xx_palmtx.c PCMCIA: stop duplicating pci_irq in soc_pcmcia_socket 2009-11-09 08:30:16 +01:00
pxa2xx_sharpsl.c PCMCIA: stop duplicating pci_irq in soc_pcmcia_socket 2009-11-09 08:30:16 +01:00
pxa2xx_stargate2.c ARM: pxa: fix now incorrect reference of skt->irq by using skt->socket.pci_irq 2009-12-13 16:33:13 +00:00
pxa2xx_trizeps4.c PCMCIA: stop duplicating pci_irq in soc_pcmcia_socket 2009-11-09 08:30:16 +01:00
pxa2xx_viper.c [ARM] pxa/zeus: make Viper pcmcia support more generic to support Zeus 2009-12-13 21:42:58 +08:00
ricoh.h
rsrc_mgr.c pcmcia: remove remaining rsrc_mgr indirections 2010-02-17 17:37:31 +01:00
rsrc_nonstatic.c pcmcia: move cistpl.c into pcmcia module 2010-02-17 17:37:30 +01:00
sa11xx_base.c PCMCIA: stop duplicating pci_irq in soc_pcmcia_socket 2009-11-09 08:30:16 +01:00
sa11xx_base.h PCMCIA: sa1111: wrap soc_pcmcia_socket to contain sa1111 specific data 2009-11-09 08:30:11 +01:00
sa1100_assabet.c PCMCIA: stop duplicating pci_irq in soc_pcmcia_socket 2009-11-09 08:30:16 +01:00
sa1100_badge4.c PCMCIA: sa1111: remove duplicated initializers 2009-11-09 08:30:12 +01:00
sa1100_cerf.c PCMCIA: stop duplicating pci_irq in soc_pcmcia_socket 2009-11-09 08:30:16 +01:00
sa1100_generic.c ARM: 5824/1: SA1100: reuse h3600 PCMCIA driver on h3100 2009-12-06 16:52:57 +00:00
sa1100_generic.h
sa1100_h3600.c ARM: 5824/1: SA1100: reuse h3600 PCMCIA driver on h3100 2009-12-06 16:52:57 +00:00
sa1100_jornada720.c PCMCIA: sa1111: remove duplicated initializers 2009-11-09 08:30:12 +01:00
sa1100_neponset.c PCMCIA: sa1111: remove duplicated initializers 2009-11-09 08:30:12 +01:00
sa1100_shannon.c PCMCIA: stop duplicating pci_irq in soc_pcmcia_socket 2009-11-09 08:30:16 +01:00
sa1100_simpad.c PCMCIA: stop duplicating pci_irq in soc_pcmcia_socket 2009-11-09 08:30:16 +01:00
sa1111_generic.c drivers/pcmcia: remove unnecessary kzalloc 2009-11-22 13:03:50 +01:00
sa1111_generic.h PCMCIA: sa1111: remove duplicated initializers 2009-11-09 08:30:12 +01:00
soc_common.c PCMCIA: stop duplicating pci_irq in soc_pcmcia_socket 2009-11-09 08:30:16 +01:00
soc_common.h PCMCIA: stop duplicating pci_irq in soc_pcmcia_socket 2009-11-09 08:30:16 +01:00
socket_sysfs.c pcmcia: move cistpl.c into pcmcia module 2010-02-17 17:37:30 +01:00
tcic.c pcmcia: use dynamic debug in PCMCIA socket drivers 2009-11-08 18:23:13 +01:00
tcic.h
ti113x.h
topic.h pcmcia: correct handling for Zoomed Video registers in topic.h 2009-11-11 19:34:27 +01:00
vg468.h
vrc4171_card.c
vrc4173_cardu.c
vrc4173_cardu.h
yenta_socket.c const: constify remaining dev_pm_ops 2009-12-15 08:53:25 -08:00
yenta_socket.h