]> git.hungrycats.org Git - linux/commitdiff
[WATCHDOG] C99 struct initialisers for shwdt
authorDave Jones <davej@codemonkey.org.uk>
Fri, 10 Jan 2003 02:21:18 +0000 (01:21 -0100)
committerDave Jones <davej@tetrachloride.(none)>
Fri, 10 Jan 2003 02:21:18 +0000 (01:21 -0100)
drivers/char/watchdog/shwdt.c

index 8761e4a92736d50cffda3d43ce26a47f14d36980..2f32ebc5708ec6443b966f4de3b4bce37d1150df 100644 (file)
@@ -334,21 +334,21 @@ static struct file_operations sh_wdt_fops = {
 };
 
 static struct watchdog_info sh_wdt_info = {
-       WDIOF_KEEPALIVEPING,
-       1,
-       "SH WDT",
+       .options = WDIOF_KEEPALIVEPING | WDIOF_SETTIMEOUT | WDIOF_MAGICCLOSE,
+       .firmware_version = 1,
+       .identity = "SH WDT",
 };
 
 static struct notifier_block sh_wdt_notifier = {
-       sh_wdt_notify_sys,
-       NULL,
-       0
+       .notifier_call = sh_wdt_notify_sys,
+       .next = NULL,
+       .priority = 0
 };
 
 static struct miscdevice sh_wdt_miscdev = {
-       WATCHDOG_MINOR,
-       "watchdog",
-       &sh_wdt_fops,
+       .minor = WATCHDOG_MINOR,
+       .name = "watchdog",
+       .fops &sh_wdt_fops,
 };
 
 /**