linux/drivers/mtd
Márton Németh 377ace08ea mtd: nand: make PCI device id constant
The id_table field of the struct pci_driver is constant in <linux/pci.h>
so it is worth to make cafe_nand_tbl 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:26 +00:00
..
chips Merge git://git.infradead.org/mtd-2.6 2009-12-16 10:23:43 -08:00
devices Merge git://git.infradead.org/mtd-2.6 2009-12-16 10:23:43 -08:00
lpddr
maps mtd: physmap_of: Correct the size argument to kzalloc 2010-01-02 10:04:56 +00:00
nand mtd: nand: make PCI device id constant 2010-02-25 11:26:26 +00:00
onenand Merge git://git.infradead.org/mtd-2.6 2009-12-16 10:23:43 -08:00
tests
ubi Merge git://git.infradead.org/ubifs-2.6 2009-12-10 09:31:45 -08:00
afs.c
ar7part.c
cmdlinepart.c
ftl.c
inftlcore.c
inftlmount.c
internal.h
Kconfig
Makefile
mtd_blkdevs.c Merge git://git.infradead.org/mtd-2.6 2009-12-16 10:23:43 -08:00
mtdbdi.c
mtdblock_ro.c
mtdblock.c
mtdchar.c
mtdconcat.c
mtdcore.c
mtdcore.h
mtdoops.c kmsg_dump: Dump on crash_kexec as well 2009-12-31 19:45:04 +00:00
mtdpart.c
mtdsuper.c
nftlcore.c
nftlmount.c
ofpart.c
redboot.c
rfd_ftl.c
ssfdc.c