lkml.org 
[lkml]   [2002]   [Oct]   [13]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateSun, 13 Oct 2002 11:00:03 +0200
FromWim Van Sebroeck <>
Subject[PATCH] linux-2.5.42 - C99 designated initializers for drivers/char/i810-tco.c
Hi Linus,

A patch for drivers/char/i810-tco.c so that it uses C99 designated initializers.

Greetings,
Wim.

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	           ChangeSet	1.787   -> 1.788  
#	drivers/char/i810-tco.c	1.10    -> 1.11   
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/10/13	wim@iguana.be	1.788
# [PATCH] C99 designated initializers for drivers/char/i810-tco.c
# --------------------------------------------
#
diff -Nru a/drivers/char/i810-tco.c b/drivers/char/i810-tco.c
--- a/drivers/char/i810-tco.c	Sun Oct 13 10:56:03 2002
+++ b/drivers/char/i810-tco.c	Sun Oct 13 10:56:04 2002
@@ -244,9 +244,9 @@
 	int options, retval = -EINVAL;
 
 	static struct watchdog_info ident = {
-		options:		WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING,
-		firmware_version:	0,
-		identity:		"i810 TCO timer",
+		.options =		WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING,
+		.firmware_version =	0,
+		.identity =		"i810 TCO timer",
 	};
 	switch (cmd) {
 		default:
@@ -371,17 +371,17 @@
 }
 
 static struct file_operations i810tco_fops = {
-	owner:		THIS_MODULE,
-	write:		i810tco_write,
-	ioctl:		i810tco_ioctl,
-	open:		i810tco_open,
-	release:	i810tco_release,
+	.owner =	THIS_MODULE,
+	.write =	i810tco_write,
+	.ioctl =	i810tco_ioctl,
+	.open =		i810tco_open,
+	.release =	i810tco_release,
 };
 
 static struct miscdevice i810tco_miscdev = {
-	minor:		WATCHDOG_MINOR,
-	name:		"watchdog",
-	fops:		&i810tco_fops,
+	.minor =	WATCHDOG_MINOR,
+	.name =		"watchdog",
+	.fops =		&i810tco_fops,
 };
 
 static int __init watchdog_init (void)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 12:30    [from the cache]
©2003-2008