Commit 0e02e111 authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[WATCHDOG] Acquirewdt C99 struct initialisers.

parent 6bf07a2d
...@@ -79,10 +79,8 @@ static ssize_t acq_write(struct file *file, const char *buf, size_t count, loff_ ...@@ -79,10 +79,8 @@ static ssize_t acq_write(struct file *file, const char *buf, size_t count, loff_
if (ppos != &file->f_pos) if (ppos != &file->f_pos)
return -ESPIPE; return -ESPIPE;
if(count) if(count) {
{ if (!nowayout) {
if (!nowayout)
{
size_t i; size_t i;
expect_close = 0; expect_close = 0;
...@@ -111,9 +109,11 @@ static ssize_t acq_read(struct file *file, char *buf, size_t count, loff_t *ppos ...@@ -111,9 +109,11 @@ static ssize_t acq_read(struct file *file, char *buf, size_t count, loff_t *ppos
static int acq_ioctl(struct inode *inode, struct file *file, unsigned int cmd, static int acq_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
unsigned long arg) unsigned long arg)
{ {
static struct watchdog_info ident= static struct watchdog_info ident =
{ {
WDIOF_KEEPALIVEPING | WDIOF_MAGICCLOSE, 1, "Acquire WDT" .options = WDIOF_KEEPALIVEPING | WDIOF_MAGICCLOSE,
.firmware_version = 1,
.identity = "Acquire WDT"
}; };
switch(cmd) switch(cmd)
...@@ -205,9 +205,9 @@ static struct file_operations acq_fops = { ...@@ -205,9 +205,9 @@ static struct file_operations acq_fops = {
static struct miscdevice acq_miscdev= static struct miscdevice acq_miscdev=
{ {
WATCHDOG_MINOR, .minor = WATCHDOG_MINOR,
"watchdog", .name = "watchdog",
&acq_fops .fops = &acq_fops
}; };
...@@ -216,11 +216,11 @@ static struct miscdevice acq_miscdev= ...@@ -216,11 +216,11 @@ static struct miscdevice acq_miscdev=
* turn the timebomb registers off. * turn the timebomb registers off.
*/ */
static struct notifier_block acq_notifier= static struct notifier_block acq_notifier =
{ {
acq_notify_sys, .notifier_call = acq_notify_sys,
NULL, .next = NULL,
0 .priority = 0
}; };
static int __init acq_init(void) static int __init acq_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