#define PFX "machzwd"
static struct watchdog_info zf_info = {
- .options = WDIOF_KEEPALIVEPING,
+ .options = WDIOF_KEEPALIVEPING | WDIOF_MAGICCLOSE,
.firmware_version = 1,
.identity = "ZF-Logic watchdog"
};
/* See if we got the magic character */
if(count){
-/*
- * no need to check for close confirmation
- * no way to disable watchdog ;)
- */
+ /*
+ * no need to check for close confirmation
+ * no way to disable watchdog ;)
+ */
if (!nowayout) {
size_t ofs;
zf_expect_close = 0;
/* now scan */
- for(ofs = 0; ofs != count; ofs++){
+ for (ofs = 0; ofs != count; ofs++){
char c;
if (get_user(c, buf + ofs))
return -EFAULT;
}
}
}
+
/*
* Well, anyhow someone wrote to us,
* we should return that favour
return -EBUSY;
}
- if (nowayout) {
+ if (nowayout)
MOD_INC_USE_COUNT;
- }
+
zf_is_open = 1;
spin_unlock(&zf_lock);