Commit 73d5c81e authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] update i810 tco to C99

parent 31520f55
...@@ -244,9 +244,9 @@ static int i810tco_ioctl (struct inode *inode, struct file *file, ...@@ -244,9 +244,9 @@ static int i810tco_ioctl (struct inode *inode, struct file *file,
int options, retval = -EINVAL; int options, retval = -EINVAL;
static struct watchdog_info ident = { static struct watchdog_info ident = {
options: WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING, .options = WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING,
firmware_version: 0, .firmware_version = 0,
identity: "i810 TCO timer", .identity = "i810 TCO timer",
}; };
switch (cmd) { switch (cmd) {
default: default:
...@@ -371,17 +371,17 @@ static unsigned char __init i810tco_getdevice (void) ...@@ -371,17 +371,17 @@ static unsigned char __init i810tco_getdevice (void)
} }
static struct file_operations i810tco_fops = { static struct file_operations i810tco_fops = {
owner: THIS_MODULE, .owner = THIS_MODULE,
write: i810tco_write, .write = i810tco_write,
ioctl: i810tco_ioctl, .ioctl = i810tco_ioctl,
open: i810tco_open, .open = i810tco_open,
release: i810tco_release, .release = i810tco_release,
}; };
static struct miscdevice i810tco_miscdev = { static struct miscdevice i810tco_miscdev = {
minor: WATCHDOG_MINOR, .minor = WATCHDOG_MINOR,
name: "watchdog", .name = "watchdog",
fops: &i810tco_fops, .fops = &i810tco_fops,
}; };
static int __init watchdog_init (void) static int __init watchdog_init (void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment