public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] C99 initializers for drivers/mtd files
@ 2003-02-26 20:53 Art Haas
  2003-02-27 19:44 ` Jörn Engel
  0 siblings, 1 reply; 9+ messages in thread
From: Art Haas @ 2003-02-26 20:53 UTC (permalink / raw)
  To: linux-mtd

Hi.

Here is a set of patches for converting files in drivers/mtd to use C99
initializers. The patches are against the current BK.

Art Haas

===== drivers/mtd/ftl.c 1.43 vs edited =====
--- 1.43/drivers/mtd/ftl.c	Sun Feb  9 19:29:55 2003
+++ edited/drivers/mtd/ftl.c	Wed Feb 26 13:35:35 2003
@@ -155,8 +155,8 @@
 void ftl_freepart(partition_t *part);
 
 static struct mtd_notifier ftl_notifier = {
-	add:	ftl_notify_add,
-	remove:	ftl_notify_remove,
+	.add	= ftl_notify_add,
+	.remove	= ftl_notify_remove,
 };
 
 /* Partition state flags */
===== drivers/mtd/mtdchar.c 1.10 vs edited =====
--- 1.10/drivers/mtd/mtdchar.c	Mon Dec  2 17:20:17 2002
+++ edited/drivers/mtd/mtdchar.c	Wed Feb 26 12:10:18 2003
@@ -19,8 +19,8 @@
 static void mtd_notify_remove(struct mtd_info* mtd);
 
 static struct mtd_notifier notifier = {
-	add:	mtd_notify_add,
-	remove:	mtd_notify_remove,
+	.add	= mtd_notify_add,
+	.remove	= mtd_notify_remove,
 };
 
 #endif
@@ -445,13 +445,13 @@
 } /* memory_ioctl */
 
 static struct file_operations mtd_fops = {
-	owner:		THIS_MODULE,
-	llseek:		mtd_lseek,     	/* lseek */
-	read:		mtd_read,	/* read */
-	write: 		mtd_write, 	/* write */
-	ioctl:		mtd_ioctl,	/* ioctl */
-	open:		mtd_open,	/* open */
-	release:	mtd_close,	/* release */
+	.owner		= THIS_MODULE,
+	.llseek		= mtd_lseek,	/* lseek */
+	.read		= mtd_read,	/* read */
+	.write 		= mtd_write, 	/* write */
+	.ioctl		= mtd_ioctl,	/* ioctl */
+	.open		= mtd_open,	/* open */
+	.release	= mtd_close,	/* release */
 };
 
 
===== drivers/mtd/nftlcore.c 1.39 vs edited =====
--- 1.39/drivers/mtd/nftlcore.c	Mon Oct 28 13:57:50 2002
+++ edited/drivers/mtd/nftlcore.c	Wed Feb 26 13:35:01 2003
@@ -914,8 +914,8 @@
  ****************************************************************************/
 
 static struct mtd_notifier nftl_notifier = {
-	add:	NFTL_notify_add,
-	remove:	NFTL_notify_remove
+	.add	= NFTL_notify_add,
+	.remove	= NFTL_notify_remove
 };
 
 extern char nftlmountrev[];
-- 
They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety.
 -- Benjamin Franklin, Historical Review of Pennsylvania, 1759

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-03-03 21:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-26 20:53 [PATCH] C99 initializers for drivers/mtd files Art Haas
2003-02-27 19:44 ` Jörn Engel
2003-02-27 21:46   ` Art Haas
2003-03-02 18:56     ` Jörn Engel
2003-03-03 20:49       ` Thayne Harbaugh
2003-03-03 21:06         ` Jörn Engel
2003-03-03 21:21           ` Thayne Harbaugh
2003-03-03 21:33             ` Art Haas
2003-03-03 21:41               ` Thayne Harbaugh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox