linux/drivers/mtd/nand
Márton Németh b2d4fbab79 mtd: nand: 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 xps2_of_match 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
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2010-02-25 11:26:36 +00:00
..
alauda.c mtd: nand: make USB device id constant 2010-02-25 11:26:31 +00:00
ams-delta.c omap: headers: Move remaining headers from include/mach to include/plat 2009-10-20 09:40:47 -07:00
atmel_nand_ecc.h [ARM] 5265/3: [AT91] Add copyright info 2008-09-21 23:01:18 +01:00
atmel_nand.c mtd: error return -EIO instead of EIO 2009-11-30 09:51:44 +00:00
au1550nd.c mtd: au1550nd.c: remove unnecessary casts 2009-12-31 19:51:33 +00:00
autcpu12.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
bcm_umi_bch.c mtd: add bcmring nand driver 2009-10-20 10:07:23 +09:00
bcm_umi_nand.c mtd: add bcmring nand driver 2009-10-20 10:07:23 +09:00
bf5xx_nand.c mtd: blackfin NFC: fix hang when using NAND on BF527-EZKITs 2009-06-05 18:27:43 +01:00
cafe_nand.c mtd: nand: make PCI device id constant 2010-02-25 11:26:26 +00:00
cmx270_nand.c trivial: mtd: add __init/__exit macros to init/exitfunctions 2009-09-21 15:14:53 +02:00
cs553x_nand.c [MTD] [NAND] Fix compilation warnings in drivers/mtd/nand/cs553x_nand.c 2008-10-18 12:39:17 +01:00
davinci_nand.c mtd: davinci_nand.c: use resource_size() 2009-12-31 19:52:46 +00:00
diskonchip.c tree-wide: fix assorted typos all over the place 2009-12-04 15:39:55 +01:00
edb7312.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
excite_nandflash.c mtd: move excite_nand_remove to .devexit.text 2009-11-30 10:01:40 +00:00
fsl_elbc_nand.c mtd: fsl_elbc_nand.c: user resource_size() 2009-12-31 19:53:51 +00:00
fsl_upm.c mtd: nand: make Open Firmware device id constant 2010-02-25 11:26:36 +00:00
gpio.c mtd: drivers/mtd/nand/gpio.c: use resource_size() 2009-12-31 20:47:01 +00:00
h1910.c [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
Kconfig mtd: Remove now-defunct ts7250 nand driver 2010-01-06 13:24:36 +00:00
Makefile mtd: Remove now-defunct ts7250 nand driver 2010-01-06 13:24:36 +00:00
mxc_nand.c Revert "mtd: move mxcnd_remove to .exit.text" 2009-12-07 09:44:05 +00:00
nand_base.c mtd: nand: fix multi-chip suspend problem 2009-11-30 11:41:24 +00:00
nand_bbt.c [MTD] update internal API to support 64-bit device size 2008-12-10 13:37:21 +00:00
nand_bcm_umi.c mtd: add bcmring nand driver 2009-10-20 10:07:23 +09:00
nand_bcm_umi.h mtd: add bcmring nand driver 2009-10-20 10:07:23 +09:00
nand_ecc.c Merge git://git.infradead.org/mtd-2.6 2009-12-16 10:23:43 -08:00
nand_ids.c MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
nandsim.c mtd: nandsim: fix spelling 2010-02-25 11:26:11 +00:00
ndfc.c mtd: nand: fix ECC Correction bug for SMC ordering for NDFC driver 2009-09-19 14:15:00 -07:00
nomadik_nand.c mtd: nomadik_nand.c: use resource_size() 2009-12-31 20:47:18 +00:00
nuc900_nand.c mtd: nand: rename w90p910_nand.c to nuc900_nand.c 2010-01-01 12:16:47 +00:00
omap2.c omap: headers: Move remaining headers from include/mach to include/plat 2009-10-20 09:40:47 -07:00
orion_nand.c mtd: orion_nand: Fix build failure caused by typo 2010-02-10 18:14:39 +00:00
pasemi_nand.c mtd: nand: make Open Firmware device id constant 2010-02-25 11:26:36 +00:00
plat_nand.c mtd: plat_nand: request memory resource before doing ioremap 2009-10-20 09:09:59 +09:00
ppchameleonevb.c MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
pxa3xx_nand.c pxa3xx_nand: move pxa3xx_nand.h common into plat directory 2009-12-01 09:02:43 +08:00
rtc_from4.c MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
s3c2410.c mtd: drivers/mtd/nand/s3c2410.c: use resource_size() 2009-12-31 20:47:22 +00:00
sh_flctl.c mtd: drivers/mtd/nand/sh_flctl.c: use resource_size() 2009-12-31 20:47:26 +00:00
sharpsl.c [MTD] sharpsl-nand: move registration to board code 2008-10-29 21:08:37 +03:00
socrates_nand.c mtd: nand: make Open Firmware device id constant 2010-02-25 11:26:36 +00:00
spia.c MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
tmio_nand.c mtd: tmio_nand.c: use dev_get_platdata() and resource_size() 2009-12-31 20:47:24 +00:00
txx9ndfmc.c mtd: txx9ndfmc: Use nand_release to free resources 2009-11-30 09:47:42 +00:00