aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/advantechwdt.c
diff options
context:
space:
mode:
authorWim Van Sebroeck <wim@iguana.be>2008-08-06 16:19:41 -0400
committerWim Van Sebroeck <wim@iguana.be>2008-08-06 16:19:41 -0400
commit7944d3a5a70ee5c1904ed1e8b1d71ff0af2854d9 (patch)
treefe6ec1a557a4b27712266d9d86f791c69e8e2596 /drivers/watchdog/advantechwdt.c
parent12b7a1523eda9cd72362fdda928ddb995ecdc06d (diff)
[WATCHDOG] more coding style clean-up's
More coding style clean-up's. Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/advantechwdt.c')
-rw-r--r--drivers/watchdog/advantechwdt.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/watchdog/advantechwdt.c b/drivers/watchdog/advantechwdt.c
index bfec16600475..a5110f93a755 100644
--- a/drivers/watchdog/advantechwdt.c
+++ b/drivers/watchdog/advantechwdt.c
@@ -47,7 +47,8 @@
47#define WATCHDOG_NAME "Advantech WDT" 47#define WATCHDOG_NAME "Advantech WDT"
48#define WATCHDOG_TIMEOUT 60 /* 60 sec default timeout */ 48#define WATCHDOG_TIMEOUT 60 /* 60 sec default timeout */
49 49
50static struct platform_device *advwdt_platform_device; /* the watchdog platform device */ 50/* the watchdog platform device */
51static struct platform_device *advwdt_platform_device;
51static unsigned long advwdt_is_open; 52static unsigned long advwdt_is_open;
52static char adv_expect_close; 53static char adv_expect_close;
53 54
@@ -120,7 +121,7 @@ static ssize_t advwdt_write(struct file *file, const char __user *buf,
120 121
121 for (i = 0; i != count; i++) { 122 for (i = 0; i != count; i++) {
122 char c; 123 char c;
123 if (get_user(c, buf+i)) 124 if (get_user(c, buf + i))
124 return -EFAULT; 125 return -EFAULT;
125 if (c == 'V') 126 if (c == 'V')
126 adv_expect_close = 42; 127 adv_expect_close = 42;
@@ -199,8 +200,7 @@ static int advwdt_open(struct inode *inode, struct file *file)
199 return nonseekable_open(inode, file); 200 return nonseekable_open(inode, file);
200} 201}
201 202
202static int 203static int advwdt_close(struct inode *inode, struct file *file)
203advwdt_close(struct inode *inode, struct file *file)
204{ 204{
205 if (adv_expect_close == 42) { 205 if (adv_expect_close == 42) {
206 advwdt_disable(); 206 advwdt_disable();
@@ -288,9 +288,9 @@ unreg_stop:
288static int __devexit advwdt_remove(struct platform_device *dev) 288static int __devexit advwdt_remove(struct platform_device *dev)
289{ 289{
290 misc_deregister(&advwdt_miscdev); 290 misc_deregister(&advwdt_miscdev);
291 release_region(wdt_start,1); 291 release_region(wdt_start, 1);
292 if(wdt_stop != wdt_start) 292 if (wdt_stop != wdt_start)
293 release_region(wdt_stop,1); 293 release_region(wdt_stop, 1);
294 294
295 return 0; 295 return 0;
296} 296}
@@ -315,7 +315,8 @@ static int __init advwdt_init(void)
315{ 315{
316 int err; 316 int err;
317 317
318 printk(KERN_INFO "WDT driver for Advantech single board computer initialising.\n"); 318 printk(KERN_INFO
319 "WDT driver for Advantech single board computer initialising.\n");
319 320
320 err = platform_driver_register(&advwdt_driver); 321 err = platform_driver_register(&advwdt_driver);
321 if (err) 322 if (err)