if (ppos != &file->f_pos)
return -ESPIPE;
- if(count)
- {
- if (!nowayout)
- {
+ if(count) {
+ if (!nowayout) {
size_t i;
expect_close = 0;
static int acq_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
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)
static struct miscdevice acq_miscdev=
{
- WATCHDOG_MINOR,
- "watchdog",
- &acq_fops
+ .minor = WATCHDOG_MINOR,
+ .name = "watchdog",
+ .fops = &acq_fops
};
* turn the timebomb registers off.
*/
-static struct notifier_block acq_notifier=
+static struct notifier_block acq_notifier =
{
- acq_notify_sys,
- NULL,
- 0
+ .notifier_call = acq_notify_sys,
+ .next = NULL,
+ .priority = 0
};
static int __init acq_init(void)