Commit fd41fa61 authored by Wim Van Sebroeck's avatar Wim Van Sebroeck

[WATCHDOG] pcwd.c add comments + tabs

add extra comments for the include files
changes spaces by tabs where it is appropriate.
Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
parent 3a69e579
...@@ -49,27 +49,30 @@ ...@@ -49,27 +49,30 @@
* More info available at http://www.berkprod.com/ or http://www.pcwatchdog.com/ * More info available at http://www.berkprod.com/ or http://www.pcwatchdog.com/
*/ */
#include <linux/module.h> #include <linux/config.h> /* For CONFIG_WATCHDOG_NOWAYOUT/... */
#include <linux/moduleparam.h> #include <linux/module.h> /* For module specific items */
#include <linux/types.h> #include <linux/moduleparam.h> /* For new moduleparam's */
#include <linux/timer.h> #include <linux/types.h> /* For standard types (like size_t) */
#include <linux/jiffies.h> #include <linux/errno.h> /* For the -ENODEV/... values */
#include <linux/config.h> #include <linux/kernel.h> /* For printk/panic/... */
#include <linux/wait.h> #include <linux/delay.h> /* For mdelay function */
#include <linux/slab.h> #include <linux/timer.h> /* For timer related operations */
#include <linux/ioport.h> #include <linux/jiffies.h> /* For jiffies stuff */
#include <linux/delay.h> #include <linux/miscdevice.h> /* For MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR) */
#include <linux/fs.h> #include <linux/watchdog.h> /* For the watchdog specific items */
#include <linux/miscdevice.h> #include <linux/notifier.h> /* For notifier support */
#include <linux/watchdog.h> #include <linux/reboot.h> /* For reboot_notifier stuff */
#include <linux/notifier.h> #include <linux/init.h> /* For __init/__exit/... */
#include <linux/init.h> #include <linux/fs.h> /* For file operations */
#include <linux/spinlock.h> #include <linux/ioport.h> /* For io-port access */
#include <linux/reboot.h> #include <linux/spinlock.h> /* For spin_lock/spin_unlock/... */
#include <linux/sched.h> /* TASK_INTERRUPTIBLE, set_current_state() and friends */ #include <linux/sched.h> /* TASK_INTERRUPTIBLE, set_current_state() and friends */
#include <asm/uaccess.h> #include <linux/slab.h> /* For kmalloc */
#include <asm/io.h>
#include <asm/uaccess.h> /* For copy_to_user/put_user/... */
#include <asm/io.h> /* For inb/outb/... */
/* Module and version information */
#define WD_VER "1.16 (06/12/2004)" #define WD_VER "1.16 (06/12/2004)"
#define PFX "pcwd: " #define PFX "pcwd: "
...@@ -84,7 +87,7 @@ ...@@ -84,7 +87,7 @@
#define PCWD_REVISION_C 2 #define PCWD_REVISION_C 2
/* /*
* These are the defines that describe the control status bits for the * These are the defines that describe the control status #1 bits for the
* PC Watchdog card, revision A. * PC Watchdog card, revision A.
*/ */
#define WD_WDRST 0x01 /* Previously reset state */ #define WD_WDRST 0x01 /* Previously reset state */
...@@ -94,7 +97,7 @@ ...@@ -94,7 +97,7 @@
#define WD_SRLY2 0x80 /* Software external relay triggered */ #define WD_SRLY2 0x80 /* Software external relay triggered */
/* /*
* These are the defines that describe the control status bits for the * These are the defines that describe the control status #1 bits for the
* PC Watchdog card, revision C. * PC Watchdog card, revision C.
*/ */
#define WD_REVC_WTRP 0x01 /* Watchdog Trip status */ #define WD_REVC_WTRP 0x01 /* Watchdog Trip status */
......
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