little fiddles.
Cc: Haavard Skinnemoen <hskinnemoen@atmel.com>
Cc: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
#include <linux/fs.h>
#include <linux/platform_device.h>
#include <linux/watchdog.h>
#include <linux/fs.h>
#include <linux/platform_device.h>
#include <linux/watchdog.h>
-
-#include <asm/uaccess.h>
-#include <asm/io.h>
+#include <linux/uaccess.h>
+#include <linux/io.h>
#define TIMEOUT_MIN 1
#define TIMEOUT_DEFAULT CONFIG_AT32AP700X_WDT_TIMEOUT
#define TIMEOUT_MIN 1
#define TIMEOUT_DEFAULT CONFIG_AT32AP700X_WDT_TIMEOUT
if ((time < TIMEOUT_MIN) || (time > TIMEOUT_MAX))
return -EINVAL;
if ((time < TIMEOUT_MIN) || (time > TIMEOUT_MAX))
return -EINVAL;
- /* Set new watchdog time. It will be used when at32_wdt_start() is called. */
+ /*
+ * Set new watchdog time. It will be used when at32_wdt_start() is
+ * called.
+ */
wdt->timeout = time;
return 0;
}
wdt->timeout = time;
return 0;
}
void __user *argp = (void __user *)arg;
int __user *p = argp;
void __user *argp = (void __user *)arg;
int __user *p = argp;
case WDIOC_KEEPALIVE:
at32_wdt_pat();
ret = 0;
case WDIOC_KEEPALIVE:
at32_wdt_pat();
ret = 0;
-static ssize_t at32_wdt_write(struct file *file, const char *data, size_t len, loff_t *ppos)
+static ssize_t at32_wdt_write(struct file *file, const char *data, size_t len,
+ loff_t *ppos)
{
at32_wdt_pat();
return len;
{
at32_wdt_pat();
return len;