mtd/include/linux/mtd cfi.h,1.37,1.38 gen_probe.h,1.1,1.2

dsaxena at plexity.net dsaxena at plexity.net
Fri Nov 7 19:51:24 EST 2003


Update of /home/cvs/mtd/include/linux/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv13221/include/linux/mtd

Modified Files:
	cfi.h gen_probe.h 
Log Message:


Remove hardcoded number of CFI chips.



Index: cfi.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/cfi.h,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- cfi.h	22 Oct 2003 18:18:41 -0000	1.37
+++ cfi.h	8 Nov 2003 00:51:21 -0000	1.38
@@ -335,8 +335,6 @@
 	struct flchip chips[0];  /* per-chip data structure for each chip */
 };
 
-#define MAX_CFI_CHIPS 8 /* Entirely arbitrary to avoid realloc() */
-
 /*
  * Returns the command address according to the given geometry.
  */

Index: gen_probe.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/gen_probe.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- gen_probe.h	2 Sep 2001 18:50:13 -0000	1.1
+++ gen_probe.h	8 Nov 2003 00:51:21 -0000	1.2
@@ -10,12 +10,12 @@
 #include <linux/mtd/flashchip.h>
 #include <linux/mtd/map.h> 
 #include <linux/mtd/cfi.h>
+#include <asm/bitops.h>
 
 struct chip_probe {
 	char *name;
 	int (*probe_chip)(struct map_info *map, __u32 base,
-			  struct flchip *chips, struct cfi_private *cfi);
-
+			  unsigned long *chip_map, struct cfi_private *cfi);
 };
 
 struct mtd_info *mtd_do_chip_probe(struct map_info *map, struct chip_probe *cp);




More information about the linux-mtd-cvs mailing list