mtd/drivers/mtd/nand spia.c,1.17,1.18

joern at infradead.org joern at infradead.org
Sun Mar 2 13:50:39 EST 2003


Update of /home/cvs/mtd/drivers/mtd/nand
In directory phoenix.infradead.org:/tmp/cvs-serv16323/drivers/mtd/nand

Modified Files:
	spia.c 
Log Message:
Citing Art Haas:
Here is a small patch that converts the file to use C99 initializers.



Index: spia.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nand/spia.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- spia.c	20 Feb 2003 13:34:19 -0000	1.17
+++ spia.c	2 Mar 2003 18:50:37 -0000	1.18
@@ -71,12 +71,16 @@
  * Define partitions for flash device
  */
 const static struct mtd_partition partition_info[] = {
-	{ name: "SPIA flash partition 1",
-	  offset: 0,
-	  size: 2*1024*1024 },
-	{ name: "SPIA flash partition 2",
-	  offset: 2*1024*1024,
-	  size: 6*1024*1024 }
+	{
+		.name	= "SPIA flash partition 1",
+		.offset	= 0,
+		.size	= 2*1024*1024
+	},
+	{
+		.name	= "SPIA flash partition 2",
+		.offset	= 2*1024*1024,
+		.size	= 6*1024*1024
+	}
 };
 #define NUM_PARTITIONS 2
 





More information about the linux-mtd-cvs mailing list