linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Small initializer patch for ide-disk.c
@ 2004-12-21 20:24 Art Haas
  2004-12-21 21:02 ` Jeff Garzik
  0 siblings, 1 reply; 12+ messages in thread
From: Art Haas @ 2004-12-21 20:24 UTC (permalink / raw)
  To: Andrew Morton, Bartlomiej Zolnierkiewicz, linux-ide

Hi.

This patch adds C99 initializers to the file. It can clearly wait until
after 2.6.10 is released if you want to send it to Linus.

Art Haas

===== drivers/ide/ide-disk.c 1.109 vs edited =====
--- 1.109/drivers/ide/ide-disk.c	2004-11-06 19:55:34 -06:00
+++ edited/drivers/ide/ide-disk.c	2004-12-20 17:24:38 -06:00
@@ -871,11 +871,27 @@
 }
 
 static ide_proc_entry_t idedisk_proc[] = {
-	{ "cache",		S_IFREG|S_IRUGO,	proc_idedisk_read_cache,		NULL },
-	{ "geometry",		S_IFREG|S_IRUGO,	proc_ide_read_geometry,			NULL },
-	{ "smart_values",	S_IFREG|S_IRUSR,	proc_idedisk_read_smart_values,		NULL },
-	{ "smart_thresholds",	S_IFREG|S_IRUSR,	proc_idedisk_read_smart_thresholds,	NULL },
-	{ NULL, 0, NULL, NULL }
+	{
+		.name		= "cache",
+		.mode		= S_IFREG|S_IRUGO,
+		.read_proc	= proc_idedisk_read_cache,
+	 },
+	{
+		.name		= "geometry",
+		.mode		= S_IFREG|S_IRUGO,
+		.read_proc	= proc_ide_read_geometry,
+	},
+	{
+		.name		= "smart_values",
+		.mode		= S_IFREG|S_IRUSR,
+		.read_proc	= proc_idedisk_read_smart_values,
+	},
+	{
+		.name		= "smart_thresholds",
+		.mode		= S_IFREG|S_IRUSR,
+		.read_proc	= proc_idedisk_read_smart_thresholds,
+	},
+	{ .mode =  0 }
 };
 
 #else
-- 
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.

-Thomas Jefferson to James Smith, 1822

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

end of thread, other threads:[~2004-12-21 23:41 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-21 20:24 [PATCH] Small initializer patch for ide-disk.c Art Haas
2004-12-21 21:02 ` Jeff Garzik
2004-12-21 21:29   ` John W. Linville
2004-12-21 21:30   ` Art Haas
2004-12-21 21:30   ` Andrew Morton
2004-12-21 21:51     ` Jeff Garzik
2004-12-21 21:57       ` Randy.Dunlap
2004-12-21 22:01         ` Jeff Garzik
2004-12-21 22:04           ` Randy.Dunlap
2004-12-21 22:21             ` Jeff Garzik
2004-12-21 23:06       ` Bartlomiej Zolnierkiewicz
2004-12-21 21:51     ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).