watchdog: cleanup spaces before tabs
authorWim Van Sebroeck <wim@iguana.be>
Wed, 23 Feb 2011 20:04:38 +0000 (20:04 +0000)
committerWim Van Sebroeck <wim@iguana.be>
Tue, 15 Mar 2011 16:02:27 +0000 (16:02 +0000)
cleanup spaces before tabs in drivers/watchdog/

Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
26 files changed:
drivers/watchdog/alim1535_wdt.c
drivers/watchdog/bcm47xx_wdt.c
drivers/watchdog/bfin_wdt.c
drivers/watchdog/cpwd.c
drivers/watchdog/eurotechwdt.c
drivers/watchdog/iTCO_wdt.c
drivers/watchdog/it8712f_wdt.c
drivers/watchdog/it87_wdt.c
drivers/watchdog/machzwd.c
drivers/watchdog/max63xx_wdt.c
drivers/watchdog/mpc8xxx_wdt.c
drivers/watchdog/mpcore_wdt.c
drivers/watchdog/mtx-1_wdt.c
drivers/watchdog/omap_wdt.h
drivers/watchdog/pc87413_wdt.c
drivers/watchdog/pnx4008_wdt.c
drivers/watchdog/s3c2410_wdt.c
drivers/watchdog/sbc8360.c
drivers/watchdog/sbc_fitpc2_wdt.c
drivers/watchdog/smsc37b787_wdt.c
drivers/watchdog/softdog.c
drivers/watchdog/ts72xx_wdt.c
drivers/watchdog/w83697ug_wdt.c
drivers/watchdog/wdt.c
drivers/watchdog/wdt977.c
drivers/watchdog/wdt_pci.c

index f9e1b7eb6c49c49cc0b22ee8f17141938fe6aaab..f16dcbd475fb7feb8c7314a1f0964a09310f0fa3 100644 (file)
@@ -362,12 +362,12 @@ static int __init ali_find_watchdog(void)
  */
 
 static const struct file_operations ali_fops = {
-       .owner          =       THIS_MODULE,
-       .llseek         =       no_llseek,
+       .owner          =       THIS_MODULE,
+       .llseek         =       no_llseek,
        .write          =       ali_write,
        .unlocked_ioctl =       ali_ioctl,
-       .open           =       ali_open,
-       .release        =       ali_release,
+       .open           =       ali_open,
+       .release        =       ali_release,
 };
 
 static struct miscdevice ali_miscdev = {
index 5f245522397bfbfc810ef6e6cbd7be1de5c281dd..bd44417c84d40940302fe484373818b84ac70982 100644 (file)
@@ -150,8 +150,8 @@ static ssize_t bcm47xx_wdt_write(struct file *file, const char __user *data,
 }
 
 static const struct watchdog_info bcm47xx_wdt_info = {
-       .identity       = DRV_NAME,
-       .options        = WDIOF_SETTIMEOUT |
+       .identity       = DRV_NAME,
+       .options        = WDIOF_SETTIMEOUT |
                                WDIOF_KEEPALIVEPING |
                                WDIOF_MAGICCLOSE,
 };
index 9042a95fc98c04e2bf3a0f10c3d9bcf460a849fc..b9fa9b71583a68b49ed1e8026329c1cc24bb431c 100644 (file)
@@ -63,7 +63,7 @@ static DEFINE_SPINLOCK(bfin_wdt_spinlock);
 /**
  *     bfin_wdt_keepalive - Keep the Userspace Watchdog Alive
  *
- *     The Userspace watchdog got a KeepAlive: schedule the next timeout.
+ *     The Userspace watchdog got a KeepAlive: schedule the next timeout.
  */
 static int bfin_wdt_keepalive(void)
 {
@@ -337,7 +337,7 @@ static int bfin_wdt_resume(struct platform_device *pdev)
 static const struct file_operations bfin_wdt_fops = {
        .owner          = THIS_MODULE,
        .llseek         = no_llseek,
-       .write          = bfin_wdt_write,
+       .write          = bfin_wdt_write,
        .unlocked_ioctl = bfin_wdt_ioctl,
        .open           = bfin_wdt_open,
        .release        = bfin_wdt_release,
index 3de4ba0260a50f482a12d0869b35287592cd4ff0..1e60ff331b900018fe0f2ed46186f7d39175c072 100644 (file)
@@ -5,10 +5,10 @@
  * interface and Solaris-compatible ioctls as best it is
  * able.
  *
- * NOTE:       CP1400 systems appear to have a defective intr_mask
- *                     register on the PLD, preventing the disabling of
- *                     timer interrupts.  We use a timer to periodically
- *                     reset 'stopped' watchdogs on affected platforms.
+ * NOTE:       CP1400 systems appear to have a defective intr_mask
+ *                     register on the PLD, preventing the disabling of
+ *                     timer interrupts.  We use a timer to periodically
+ *                     reset 'stopped' watchdogs on affected platforms.
  *
  * Copyright (c) 2000 Eric Brower (ebrower@usa.net)
  * Copyright (C) 2008 David S. Miller <davem@davemloft.net>
@@ -107,13 +107,13 @@ static struct cpwd *cpwd_device;
  * -------------------
  * |-  counter val  -|
  * -------------------
- * dcntr -     Current 16-bit downcounter value.
- *                     When downcounter reaches '0' watchdog expires.
- *                     Reading this register resets downcounter with
- *                     'limit' value.
- * limit -     16-bit countdown value in 1/10th second increments.
- *                     Writing this register begins countdown with input value.
- *                     Reading from this register does not affect counter.
+ * dcntr -     Current 16-bit downcounter value.
+ *                     When downcounter reaches '0' watchdog expires.
+ *                     Reading this register resets downcounter with
+ *                     'limit' value.
+ * limit -     16-bit countdown value in 1/10th second increments.
+ *                     Writing this register begins countdown with input value.
+ *                     Reading from this register does not affect counter.
  * NOTES:      After watchdog reset, dcntr and limit contain '1'
  *
  * status register (byte access):
@@ -123,7 +123,7 @@ static struct cpwd *cpwd_device;
  * |-   UNUSED  -| EXP | RUN |
  * ---------------------------
  * status-     Bit 0 - Watchdog is running
- *                     Bit 1 - Watchdog has expired
+ *                     Bit 1 - Watchdog has expired
  *
  *** PLD register block definition (struct wd_pld_regblk)
  *
@@ -197,7 +197,7 @@ static u8 cpwd_readb(void __iomem *addr)
  * Because of the CP1400 defect this should only be
  * called during initialzation or by wd_[start|stop]timer()
  *
- * index       - sub-device index, or -1 for 'all'
+ * index       - sub-device index, or -1 for 'all'
  * enable      - non-zero to enable interrupts, zero to disable
  */
 static void cpwd_toggleintr(struct cpwd *p, int index, int enable)
@@ -317,13 +317,13 @@ static int cpwd_getstatus(struct cpwd *p, int index)
                } else {
                        /* Fudge WD_EXPIRED status for defective CP1400--
                         * IF timer is running
-                        *      AND brokenstop is set
-                        *      AND an interrupt has been serviced
+                        *      AND brokenstop is set
+                        *      AND an interrupt has been serviced
                         * we are WD_EXPIRED.
                         *
                         * IF timer is running
-                        *      AND brokenstop is set
-                        *      AND no interrupt has been serviced
+                        *      AND brokenstop is set
+                        *      AND no interrupt has been serviced
                         * we are WD_FREERUN.
                         */
                        if (p->broken &&
@@ -614,7 +614,7 @@ static int __devinit cpwd_probe(struct platform_device *op,
 
        if (p->broken) {
                init_timer(&cpwd_timer);
-               cpwd_timer.function     = cpwd_brokentimer;
+               cpwd_timer.function     = cpwd_brokentimer;
                cpwd_timer.data         = (unsigned long) p;
                cpwd_timer.expires      = WD_BTIMEOUT;
 
index 3f3dc093ad68030d4d22442df70cfd532ace9039..f1d1da662fbec73262f98e9289884184f67a30d0 100644 (file)
@@ -201,7 +201,7 @@ static void eurwdt_ping(void)
 static ssize_t eurwdt_write(struct file *file, const char __user *buf,
 size_t count, loff_t *ppos)
 {
-       if (count)      {
+       if (count) {
                if (!nowayout) {
                        size_t i;
 
index db0f5b85ba5f88dc6f4cd4cc5a6a1fdd822b2baa..35a0d12dad7351340fdd1cfc8b84cb221556e059 100644 (file)
@@ -247,7 +247,7 @@ static struct {
        {NULL, 0}
 };
 
-#define ITCO_PCI_DEVICE(dev, data)     \
+#define ITCO_PCI_DEVICE(dev, data) \
        .vendor = PCI_VENDOR_ID_INTEL,  \
        .device = dev,                  \
        .subvendor = PCI_ANY_ID,        \
index b32c6c045b1ad0cd34758e4e90d673bf9ccf4f7f..6143f52ba6b8d4f019794cb04896e8dc20de4e18 100644 (file)
@@ -69,7 +69,7 @@ static unsigned short address;
 #define IT8712F_DEVID  0x8712
 
 #define LDN_GPIO       0x07    /* GPIO and Watch Dog Timer */
-#define LDN_GAME       0x09    /* Game Port */
+#define LDN_GAME       0x09    /* Game Port */
 
 #define WDT_CONTROL    0x71    /* WDT Register: Control */
 #define WDT_CONFIG     0x72    /* WDT Register: Configuration */
index e5c8b37bf7392874bca27722eaf2e71d73861f19..b1bc72f9a20940f1be3d341f29b5fc9567fcede6 100644 (file)
@@ -54,7 +54,7 @@
 /* Defaults for Module Parameter */
 #define DEFAULT_NOGAMEPORT     0
 #define DEFAULT_EXCLUSIVE      1
-#define DEFAULT_TIMEOUT        60
+#define DEFAULT_TIMEOUT                60
 #define DEFAULT_TESTMODE       0
 #define DEFAULT_NOWAYOUT       WATCHDOG_NOWAYOUT
 
@@ -70,9 +70,9 @@
 /* Configuration Registers and Functions */
 #define LDNREG         0x07
 #define CHIPID         0x20
-#define CHIPREV        0x22
+#define CHIPREV                0x22
 #define ACTREG         0x30
-#define BASEREG        0x60
+#define BASEREG                0x60
 
 /* Chip Id numbers */
 #define NO_DEV_ID      0xffff
@@ -86,7 +86,7 @@
 #define IT8726_ID      0x8726  /* the data sheet suggest wrongly 0x8716 */
 
 /* GPIO Configuration Registers LDN=0x07 */
-#define WDTCTRL        0x71
+#define WDTCTRL                0x71
 #define WDTCFG         0x72
 #define WDTVALLSB      0x73
 #define WDTVALMSB      0x74
 #define WDT_INT_MASK   0x0f
 
 /* CIR Configuration Register LDN=0x0a */
-#define CIR_ILS        0x70
+#define CIR_ILS                0x70
 
 /* The default Base address is not always available, we use this */
 #define CIR_BASE       0x0208
index 928035069396e8117dedca9c5284b7841057d372..1332b838cc5830f0be76fe104abdcf8c4e40cd93 100644 (file)
@@ -54,7 +54,7 @@
 
 /* indexes */                  /* size */
 #define ZFL_VERSION    0x02    /* 16   */
-#define CONTROL        0x10    /* 16   */
+#define CONTROL                0x10    /* 16   */
 #define STATUS         0x12    /* 8    */
 #define COUNTER_1      0x0C    /* 16   */
 #define COUNTER_2      0x0E    /* 8    */
index 3053ff05ca410b7d4fba52cadd7d86071d3c4896..7a82ce5a6337e3948adc1d9e42eab5c72aecf654 100644 (file)
@@ -41,7 +41,7 @@ static int nowayout  = WATCHDOG_NOWAYOUT;
  * to ping the watchdog.
  */
 #define MAX6369_WDSET  (7 << 0)
-#define MAX6369_WDI    (1 << 3)
+#define MAX6369_WDI    (1 << 3)
 
 static DEFINE_SPINLOCK(io_lock);
 
index 8fa213cdb499b0c7e36460c6aa0af09cb1614254..3dee837190ea3b7d1c7ff634329b684d4f362991 100644 (file)
@@ -2,9 +2,9 @@
  * mpc8xxx_wdt.c - MPC8xx/MPC83xx/MPC86xx watchdog userspace interface
  *
  * Authors: Dave Updegraff <dave@cray.org>
- *         Kumar Gala <galak@kernel.crashing.org>
- *             Attribution: from 83xx_wst: Florian Schirmer <jolt@tuxbox.org>
- *                             ..and from sc520_wdt
+ *         Kumar Gala <galak@kernel.crashing.org>
+ *             Attribution: from 83xx_wst: Florian Schirmer <jolt@tuxbox.org>
+ *                             ..and from sc520_wdt
  * Copyright (c) 2008  MontaVista Software, Inc.
  *                     Anton Vorontsov <avorontsov@ru.mvista.com>
  *
index b8ec7aca3c8ea4696c96a5cb2d6f000905577ab9..2b4af222b5f260647de91b8bba56cd68b4ba8659 100644 (file)
@@ -172,7 +172,7 @@ static int mpcore_wdt_release(struct inode *inode, struct file *file)
 
        /*
         *      Shut off the timer.
-        *      Lock it in if it's a module and we set nowayout
+        *      Lock it in if it's a module and we set nowayout
         */
        if (wdt->expect_close == 42)
                mpcore_wdt_stop(wdt);
index 08e8a6ab74e11f11c3ea22cddc4a785cc9c1aaf0..5ec5ac1f78782296c5343ac07ec43932f25ad14e 100644 (file)
@@ -190,19 +190,19 @@ static ssize_t mtx1_wdt_write(struct file *file, const char *buf,
 }
 
 static const struct file_operations mtx1_wdt_fops = {
-       .owner          = THIS_MODULE,
+       .owner          = THIS_MODULE,
        .llseek         = no_llseek,
        .unlocked_ioctl = mtx1_wdt_ioctl,
-       .open           = mtx1_wdt_open,
-       .write          = mtx1_wdt_write,
-       .release        = mtx1_wdt_release,
+       .open           = mtx1_wdt_open,
+       .write          = mtx1_wdt_write,
+       .release        = mtx1_wdt_release,
 };
 
 
 static struct miscdevice mtx1_wdt_misc = {
-       .minor  = WATCHDOG_MINOR,
-       .name   = "watchdog",
-       .fops   = &mtx1_wdt_fops,
+       .minor  = WATCHDOG_MINOR,
+       .name   = "watchdog",
+       .fops   = &mtx1_wdt_fops,
 };
 
 
index fc02ec6a03869a6a6bb0daa9889b1ebf10d558ec..09b774cf75b9be8ebd83fefbdbc199e2c432a631 100644 (file)
@@ -44,7 +44,7 @@
  * months before firing.  These limits work without scaling,
  * with the 60 second default assumed by most tools and docs.
  */
-#define TIMER_MARGIN_MAX       (24 * 60 * 60)  /* 1 day */
+#define TIMER_MARGIN_MAX       (24 * 60 * 60)  /* 1 day */
 #define TIMER_MARGIN_DEFAULT   60      /* 60 secs */
 #define TIMER_MARGIN_MIN       1
 
index 3a56bc3609247f4fbb6e8fe5fffd5bacb2e209d1..139d773300c6f29feb8bb3128919027736347c3d 100644 (file)
@@ -514,7 +514,7 @@ static struct miscdevice pc87413_miscdev = {
 /* -- Module init functions -------------------------------------*/
 
 /**
- *     pc87413_init: module's "constructor"
+ *     pc87413_init: module's "constructor"
  *
  *     Set up the WDT watchdog board. All we have to do is grab the
  *     resources we require and bitch if anyone beat us to them.
index bf5b97c546eb4d699edbbd0fa3aa3f22727c7570..c7cf4cbf8ab3f302c2efc75bebf7f5a752d2d08b 100644 (file)
@@ -4,7 +4,7 @@
  * Watchdog driver for PNX4008 board
  *
  * Authors: Dmitry Chigirev <source@mvista.com>,
- *         Vitaly Wool <vitalywool@gmail.com>
+ *         Vitaly Wool <vitalywool@gmail.com>
  * Based on sa1100 driver,
  * Copyright (C) 2000 Oleg Drokin <green@crimea.edu>
  *
index ae53662c29bce78ce4a674155e7ee24577818950..25b39bf35925b11bc1b1f4c2edc2c15dfd6c66cc 100644 (file)
@@ -224,7 +224,7 @@ static int s3c2410wdt_release(struct inode *inode, struct file *file)
 {
        /*
         *      Shut off the timer.
-        *      Lock it in if it's a module and we set nowayout
+        *      Lock it in if it's a module and we set nowayout
         */
 
        if (expect_close == 42)
index 68e2e2d6f73d80a085660baa78fe7fbbc736a6df..514ec23050f7814565a209649c809f0763426151 100644 (file)
@@ -114,7 +114,7 @@ static char expect_close;
  *     C |     6.5s    65s     650s    1300s
  *     D |     7s      70s     700s    1400s
  *     E |     7.5s    75s     750s    1500s
- *     F |     8s      80s     800s    1600s
+ *     F |     8s      80s     800s    1600s
  *
  * Another way to say the same things is:
  *  For N=1, Timeout = (M+1) * 0.5s
index 79906255eeb6bde9b6bd6ebb5653280833819b50..d5d399464599f3dcc43accc1ba861ee5bc24a1d8 100644 (file)
@@ -41,7 +41,7 @@ static DEFINE_MUTEX(wdt_lock);
 #define IFACE_ON_COMMAND       1
 #define REBOOT_COMMAND         2
 
-#define WATCHDOG_NAME          "SBC-FITPC2 Watchdog"
+#define WATCHDOG_NAME          "SBC-FITPC2 Watchdog"
 
 static void wdt_send_data(unsigned char command, unsigned char data)
 {
index 8a1f0bc3e271f3b7d52f86650837fee402a912e3..df88cfa05f35c59d02be9622c804ea09edb7346c 100644 (file)
@@ -434,11 +434,11 @@ static long wb_smsc_wdt_ioctl(struct file *file,
        } uarg;
 
        static const struct watchdog_info ident = {
-               .options =              WDIOF_KEEPALIVEPING |
+               .options =              WDIOF_KEEPALIVEPING |
                                        WDIOF_SETTIMEOUT |
                                        WDIOF_MAGICCLOSE,
                .firmware_version =     0,
-               .identity =             "SMsC 37B787 Watchdog",
+               .identity =             "SMsC 37B787 Watchdog",
        };
 
        uarg.i = (int __user *)arg;
index 833f49f43d43b61ca6267dd5bdf7aaa2bbea31b3..100b114e3c3c754bcffe7fb7b1abb28c951c9bf3 100644 (file)
@@ -151,7 +151,7 @@ static int softdog_release(struct inode *inode, struct file *file)
 {
        /*
         *      Shut off the timer.
-        *      Lock it in if it's a module and we set nowayout
+        *      Lock it in if it's a module and we set nowayout
         */
        if (expect_close == 42) {
                softdog_stop();
index 18cdeb4c4258a67ccdba77fc517596eaa71819b9..5a90a4a871ddf7c06f8c73b3f515d9000b7b3702 100644 (file)
@@ -68,7 +68,7 @@ struct platform_device *ts72xx_wdt_pdev;
  * to control register):
  *     value   description
  *     -------------------------
- *     0x00    watchdog disabled
+ *     0x00    watchdog disabled
  *     0x01    250ms
  *     0x02    500ms
  *     0x03    1s
index df2a64dc9672dee584995e4b518ea5f8b0494df7..be9c4d839e152336d6e992bc5850f31c802a9a2d 100644 (file)
@@ -87,10 +87,10 @@ static int w83697ug_select_wd_register(void)
        outb_p(0x87, WDT_EFER); /* Enter extended function mode */
        outb_p(0x87, WDT_EFER); /* Again according to manual */
 
-       outb(0x20, WDT_EFER);   /* check chip version   */
+       outb(0x20, WDT_EFER);   /* check chip version   */
        version = inb(WDT_EFDR);
 
-       if (version == 0x68) {  /* W83697UG             */
+       if (version == 0x68) {  /* W83697UG             */
                printk(KERN_INFO PFX "Watchdog chip version 0x%02x = "
                        "W83697UG/UF found at 0x%04x\n", version, wdt_io);
 
index 552a4381e78f83037b7a0eb100fbab304bf42de0..bb03e151a1d01fb34fd6fbed8e413c44f7da677d 100644 (file)
@@ -581,7 +581,7 @@ static void __exit wdt_exit(void)
 }
 
 /**
- *     wdt_init:
+ *     wdt_init:
  *
  *     Set up the WDT watchdog board. All we have to do is grab the
  *     resources we require and bitch if anyone beat us to them.
index 5c2521fc836c3fa7c7829d3ad63fe5de5ebcdbe0..a2f01c9f5c341af0e27079185fb0094adca3a539 100644 (file)
@@ -281,7 +281,7 @@ static int wdt977_release(struct inode *inode, struct file *file)
 {
        /*
         *      Shut off the timer.
-        *      Lock it in if it's a module and we set nowayout
+        *      Lock it in if it's a module and we set nowayout
         */
        if (expect_close == 42) {
                wdt977_stop();
index 97bb6fbdcf56c8a6b8e3ca723157503e03363897..172dad6c7693a1399e53d001e46876662f7ac27b 100644 (file)
@@ -31,7 +31,7 @@
  *             Jeff Garzik     :       PCI cleanups
  *             Tigran Aivazian :       Restructured wdtpci_init_one() to handle
  *                                     failures
- *             Joel Becker     :       Added WDIOC_GET/SETTIMEOUT
+ *             Joel Becker     :       Added WDIOC_GET/SETTIMEOUT
  *             Zwane Mwaikambo :       Magic char closing, locking changes,
  *                                     cleanups
  *             Matt Domsch     :       nowayout module option
@@ -764,7 +764,7 @@ static void __exit wdtpci_cleanup(void)
 
 
 /**
- *     wdtpci_init:
+ *     wdtpci_init:
  *
  *     Set up the WDT watchdog board. All we have to do is grab the
  *     resources we require and bitch if anyone beat us to them.