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

[WATCHDOG] 2.6.0-rc1 cleanup-spaces-tabs.patch

Cleanup of trailing spaces, tabs, ...
parent 8c30fef8
...@@ -170,7 +170,7 @@ static int amdtco_fop_ioctl(struct inode *inode, struct file *file, unsigned int ...@@ -170,7 +170,7 @@ static int amdtco_fop_ioctl(struct inode *inode, struct file *file, unsigned int
static struct watchdog_info ident = { static struct watchdog_info ident = {
.options = WDIOF_SETTIMEOUT | WDIOF_CARDRESET, .options = WDIOF_SETTIMEOUT | WDIOF_CARDRESET,
.identity = "AMD 766/768" .identity = "AMD 766/768",
}; };
switch (cmd) { switch (cmd) {
...@@ -274,7 +274,7 @@ static int amdtco_notify_sys(struct notifier_block *this, unsigned long code, vo ...@@ -274,7 +274,7 @@ static int amdtco_notify_sys(struct notifier_block *this, unsigned long code, vo
static struct notifier_block amdtco_notifier = static struct notifier_block amdtco_notifier =
{ {
.notifier_call = amdtco_notify_sys .notifier_call = amdtco_notify_sys,
}; };
static struct file_operations amdtco_fops = static struct file_operations amdtco_fops =
...@@ -283,20 +283,20 @@ static struct file_operations amdtco_fops = ...@@ -283,20 +283,20 @@ static struct file_operations amdtco_fops =
.write = amdtco_fop_write, .write = amdtco_fop_write,
.ioctl = amdtco_fop_ioctl, .ioctl = amdtco_fop_ioctl,
.open = amdtco_fop_open, .open = amdtco_fop_open,
.release = amdtco_fop_release .release = amdtco_fop_release,
}; };
static struct miscdevice amdtco_miscdev = static struct miscdevice amdtco_miscdev =
{ {
.minor = WATCHDOG_MINOR, .minor = WATCHDOG_MINOR,
.name = "watchdog", .name = "watchdog",
.fops = &amdtco_fops .fops = &amdtco_fops,
}; };
static struct pci_device_id amdtco_pci_tbl[] = { static struct pci_device_id amdtco_pci_tbl[] = {
/* AMD 766 PCI_IDs here */ /* AMD 766 PCI_IDs here */
{ PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_OPUS_7443, PCI_ANY_ID, PCI_ANY_ID, }, { PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_OPUS_7443, PCI_ANY_ID, PCI_ANY_ID, },
{ 0, } { 0, },
}; };
MODULE_DEVICE_TABLE (pci, amdtco_pci_tbl); MODULE_DEVICE_TABLE (pci, amdtco_pci_tbl);
......
...@@ -152,7 +152,7 @@ static int cpu5wdt_ioctl(struct inode *inode, struct file *file, unsigned int cm ...@@ -152,7 +152,7 @@ static int cpu5wdt_ioctl(struct inode *inode, struct file *file, unsigned int cm
static struct watchdog_info ident = static struct watchdog_info ident =
{ {
.options = WDIOF_CARDRESET, .options = WDIOF_CARDRESET,
.identity = "CPU5 WDT" .identity = "CPU5 WDT",
}; };
switch(cmd) { switch(cmd) {
...@@ -209,7 +209,7 @@ static struct file_operations cpu5wdt_fops = { ...@@ -209,7 +209,7 @@ static struct file_operations cpu5wdt_fops = {
static struct miscdevice cpu5wdt_misc = { static struct miscdevice cpu5wdt_misc = {
.minor = WATCHDOG_MINOR, .minor = WATCHDOG_MINOR,
.name = "watchdog", .name = "watchdog",
.fops = &cpu5wdt_fops .fops = &cpu5wdt_fops,
}; };
/* init/exit function */ /* init/exit function */
......
/* /*
* Eurotech CPU-1220/1410 on board WDT driver for Linux 2.4.x * Eurotech CPU-1220/1410 on board WDT driver
* *
* (c) Copyright 2001 Ascensit <support@ascensit.com> * (c) Copyright 2001 Ascensit <support@ascensit.com>
* (c) Copyright 2001 Rodolfo Giometti <giometti@ascensit.com> * (c) Copyright 2001 Rodolfo Giometti <giometti@ascensit.com>
...@@ -406,7 +406,7 @@ static struct file_operations eurwdt_fops = { ...@@ -406,7 +406,7 @@ static struct file_operations eurwdt_fops = {
static struct miscdevice eurwdt_miscdev = { static struct miscdevice eurwdt_miscdev = {
.minor = WATCHDOG_MINOR, .minor = WATCHDOG_MINOR,
.name = "watchdog", .name = "watchdog",
.fops = &eurwdt_fops .fops = &eurwdt_fops,
}; };
/* /*
......
...@@ -174,7 +174,7 @@ ibwdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd, ...@@ -174,7 +174,7 @@ ibwdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
static struct watchdog_info ident = { static struct watchdog_info ident = {
.options = WDIOF_KEEPALIVEPING | WDIOF_SETTIMEOUT | WDIOF_MAGICCLOSE, .options = WDIOF_KEEPALIVEPING | WDIOF_SETTIMEOUT | WDIOF_MAGICCLOSE,
.firmware_version = 1, .firmware_version = 1,
.identity = "IB700 WDT" .identity = "IB700 WDT",
}; };
switch (cmd) { switch (cmd) {
...@@ -274,7 +274,7 @@ static struct file_operations ibwdt_fops = { ...@@ -274,7 +274,7 @@ static struct file_operations ibwdt_fops = {
static struct miscdevice ibwdt_miscdev = { static struct miscdevice ibwdt_miscdev = {
.minor = WATCHDOG_MINOR, .minor = WATCHDOG_MINOR,
.name = "watchdog", .name = "watchdog",
.fops = &ibwdt_fops .fops = &ibwdt_fops,
}; };
/* /*
...@@ -285,7 +285,7 @@ static struct miscdevice ibwdt_miscdev = { ...@@ -285,7 +285,7 @@ static struct miscdevice ibwdt_miscdev = {
static struct notifier_block ibwdt_notifier = { static struct notifier_block ibwdt_notifier = {
.notifier_call = ibwdt_notify_sys, .notifier_call = ibwdt_notify_sys,
.next = NULL, .next = NULL,
.priority = 0 .priority = 0,
}; };
static int __init ibwdt_init(void) static int __init ibwdt_init(void)
......
...@@ -113,7 +113,7 @@ MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=CON ...@@ -113,7 +113,7 @@ MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started (default=CON
static struct watchdog_info zf_info = { static struct watchdog_info zf_info = {
.options = WDIOF_KEEPALIVEPING | WDIOF_MAGICCLOSE, .options = WDIOF_KEEPALIVEPING | WDIOF_MAGICCLOSE,
.firmware_version = 1, .firmware_version = 1,
.identity = "ZF-Logic watchdog" .identity = "ZF-Logic watchdog",
}; };
...@@ -436,7 +436,7 @@ static struct file_operations zf_fops = { ...@@ -436,7 +436,7 @@ static struct file_operations zf_fops = {
static struct miscdevice zf_miscdev = { static struct miscdevice zf_miscdev = {
.minor = WATCHDOG_MINOR, .minor = WATCHDOG_MINOR,
.name = "watchdog", .name = "watchdog",
.fops = &zf_fops .fops = &zf_fops,
}; };
...@@ -447,7 +447,7 @@ static struct miscdevice zf_miscdev = { ...@@ -447,7 +447,7 @@ static struct miscdevice zf_miscdev = {
static struct notifier_block zf_notifier = { static struct notifier_block zf_notifier = {
.notifier_call = zf_notify_sys, .notifier_call = zf_notify_sys,
.next = NULL, .next = NULL,
.priority = 0 .priority = 0,
}; };
static void __init zf_show_action(int act) static void __init zf_show_action(int act)
......
...@@ -168,7 +168,7 @@ static int mixcomwd_ioctl(struct inode *inode, struct file *file, ...@@ -168,7 +168,7 @@ static int mixcomwd_ioctl(struct inode *inode, struct file *file,
static struct watchdog_info ident = { static struct watchdog_info ident = {
.options = WDIOF_KEEPALIVEPING | WDIOF_MAGICCLOSE, .options = WDIOF_KEEPALIVEPING | WDIOF_MAGICCLOSE,
.firmware_version = 1, .firmware_version = 1,
.identity = "MixCOM watchdog" .identity = "MixCOM watchdog",
}; };
switch(cmd) switch(cmd)
...@@ -208,9 +208,9 @@ static struct file_operations mixcomwd_fops= ...@@ -208,9 +208,9 @@ static struct file_operations mixcomwd_fops=
static struct miscdevice mixcomwd_miscdev= static struct miscdevice mixcomwd_miscdev=
{ {
WATCHDOG_MINOR, .minor = WATCHDOG_MINOR,
"watchdog", .name = "watchdog",
&mixcomwd_fops .fops = &mixcomwd_fops,
}; };
static int __init mixcomwd_checkcard(int port) static int __init mixcomwd_checkcard(int port)
......
...@@ -248,9 +248,9 @@ static int pcwd_ioctl(struct inode *inode, struct file *file, ...@@ -248,9 +248,9 @@ static int pcwd_ioctl(struct inode *inode, struct file *file,
int cdat, rv; int cdat, rv;
static struct watchdog_info ident= static struct watchdog_info ident=
{ {
WDIOF_OVERHEAT|WDIOF_CARDRESET, .options = WDIOF_OVERHEAT|WDIOF_CARDRESET,
1, .firmware_version = 1,
"PCWD" .identity = "PCWD",
}; };
switch(cmd) { switch(cmd) {
...@@ -577,15 +577,15 @@ static struct file_operations pcwd_fops = { ...@@ -577,15 +577,15 @@ static struct file_operations pcwd_fops = {
}; };
static struct miscdevice pcwd_miscdev = { static struct miscdevice pcwd_miscdev = {
WATCHDOG_MINOR, .minor = WATCHDOG_MINOR,
"watchdog", .name = "watchdog",
&pcwd_fops .fops = &pcwd_fops,
}; };
static struct miscdevice temp_miscdev = { static struct miscdevice temp_miscdev = {
TEMP_MINOR, .minor = TEMP_MINOR,
"temperature", .name = "temperature",
&pcwd_fops .fops = &pcwd_fops,
}; };
static void __init pcwd_validate_timeout(void) static void __init pcwd_validate_timeout(void)
......
...@@ -175,7 +175,7 @@ static int sc1200wdt_ioctl(struct inode *inode, struct file *file, unsigned int ...@@ -175,7 +175,7 @@ static int sc1200wdt_ioctl(struct inode *inode, struct file *file, unsigned int
static struct watchdog_info ident = { static struct watchdog_info ident = {
.options = WDIOF_KEEPALIVEPING | WDIOF_SETTIMEOUT | WDIOF_MAGICCLOSE, .options = WDIOF_KEEPALIVEPING | WDIOF_SETTIMEOUT | WDIOF_MAGICCLOSE,
.firmware_version = 0, .firmware_version = 0,
.identity = "PC87307/PC97307" .identity = "PC87307/PC97307",
}; };
switch (cmd) { switch (cmd) {
...@@ -292,7 +292,7 @@ static int sc1200wdt_notify_sys(struct notifier_block *this, unsigned long code, ...@@ -292,7 +292,7 @@ static int sc1200wdt_notify_sys(struct notifier_block *this, unsigned long code,
static struct notifier_block sc1200wdt_notifier = static struct notifier_block sc1200wdt_notifier =
{ {
notifier_call: sc1200wdt_notify_sys .notifier_call = sc1200wdt_notify_sys,
}; };
static struct file_operations sc1200wdt_fops = static struct file_operations sc1200wdt_fops =
...@@ -301,7 +301,7 @@ static struct file_operations sc1200wdt_fops = ...@@ -301,7 +301,7 @@ static struct file_operations sc1200wdt_fops =
.write = sc1200wdt_write, .write = sc1200wdt_write,
.ioctl = sc1200wdt_ioctl, .ioctl = sc1200wdt_ioctl,
.open = sc1200wdt_open, .open = sc1200wdt_open,
.release = sc1200wdt_release .release = sc1200wdt_release,
}; };
static struct miscdevice sc1200wdt_miscdev = static struct miscdevice sc1200wdt_miscdev =
...@@ -334,7 +334,7 @@ static int __init sc1200wdt_probe(void) ...@@ -334,7 +334,7 @@ static int __init sc1200wdt_probe(void)
struct pnp_device_id scl200wdt_pnp_devices[] = { struct pnp_device_id scl200wdt_pnp_devices[] = {
/* National Semiconductor PC87307/PC97307 watchdog component */ /* National Semiconductor PC87307/PC97307 watchdog component */
{.id = "NSC0800", .driver_data = 0}, {.id = "NSC0800", .driver_data = 0},
{.id = ""} {.id = ""},
}; };
static int scl200wdt_pnp_probe(struct pnp_dev * dev, const struct pnp_device_id *dev_id) static int scl200wdt_pnp_probe(struct pnp_dev * dev, const struct pnp_device_id *dev_id)
......
/* linux/drivers/char/scx200_wdt.c /* drivers/char/watchdog/scx200_wdt.c
National Semiconductor SCx200 Watchdog support National Semiconductor SCx200 Watchdog support
...@@ -127,7 +127,7 @@ static int scx200_wdt_notify_sys(struct notifier_block *this, ...@@ -127,7 +127,7 @@ static int scx200_wdt_notify_sys(struct notifier_block *this,
static struct notifier_block scx200_wdt_notifier = static struct notifier_block scx200_wdt_notifier =
{ {
.notifier_call = scx200_wdt_notify_sys .notifier_call = scx200_wdt_notify_sys,
}; };
static ssize_t scx200_wdt_write(struct file *file, const char *data, static ssize_t scx200_wdt_write(struct file *file, const char *data,
......
...@@ -326,7 +326,7 @@ static int wdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd, ...@@ -326,7 +326,7 @@ static int wdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
|WDIOF_EXTERN1|WDIOF_EXTERN2|WDIOF_FANFAULT |WDIOF_EXTERN1|WDIOF_EXTERN2|WDIOF_FANFAULT
|WDIOF_SETTIMEOUT|WDIOF_MAGICCLOSE, |WDIOF_SETTIMEOUT|WDIOF_MAGICCLOSE,
.firmware_version = 1, .firmware_version = 1,
.identity = "WDT500/501" .identity = "WDT500/501",
}; };
ident.options&=WDT_OPTION_MASK; /* Mask down to the card we have */ ident.options&=WDT_OPTION_MASK; /* Mask down to the card we have */
...@@ -469,7 +469,7 @@ static struct miscdevice wdt_miscdev= ...@@ -469,7 +469,7 @@ static struct miscdevice wdt_miscdev=
{ {
.minor = WATCHDOG_MINOR, .minor = WATCHDOG_MINOR,
.name = "watchdog", .name = "watchdog",
.fops = &wdt_fops .fops = &wdt_fops,
}; };
#ifdef CONFIG_WDT_501 #ifdef CONFIG_WDT_501
...@@ -477,7 +477,7 @@ static struct miscdevice temp_miscdev= ...@@ -477,7 +477,7 @@ static struct miscdevice temp_miscdev=
{ {
.minor = TEMP_MINOR, .minor = TEMP_MINOR,
.name = "temperature", .name = "temperature",
.fops = &wdt_fops .fops = &wdt_fops,
}; };
#endif #endif
...@@ -490,7 +490,7 @@ static struct notifier_block wdt_notifier= ...@@ -490,7 +490,7 @@ static struct notifier_block wdt_notifier=
{ {
.notifier_call = wdt_notify_sys, .notifier_call = wdt_notify_sys,
.next = NULL, .next = NULL,
.priority = 0 .priority = 0,
}; };
/** /**
......
...@@ -132,7 +132,7 @@ watchdog_write(struct file *file, const char *data, size_t len, loff_t *ppos) ...@@ -132,7 +132,7 @@ watchdog_write(struct file *file, const char *data, size_t len, loff_t *ppos)
static struct watchdog_info ident = { static struct watchdog_info ident = {
.options = WDIOF_SETTIMEOUT, .options = WDIOF_SETTIMEOUT,
.identity = "Footbridge Watchdog" .identity = "Footbridge Watchdog",
}; };
static int static int
...@@ -192,7 +192,7 @@ static struct file_operations watchdog_fops = { ...@@ -192,7 +192,7 @@ static struct file_operations watchdog_fops = {
static struct miscdevice watchdog_miscdev = { static struct miscdevice watchdog_miscdev = {
.minor = WATCHDOG_MINOR, .minor = WATCHDOG_MINOR,
.name = "watchdog", .name = "watchdog",
.fops = &watchdog_fops .fops = &watchdog_fops,
}; };
static int __init footbridge_watchdog_init(void) static int __init footbridge_watchdog_init(void)
......
...@@ -258,7 +258,7 @@ static ssize_t wdt977_write(struct file *file, const char *buf, size_t count, lo ...@@ -258,7 +258,7 @@ static ssize_t wdt977_write(struct file *file, const char *buf, size_t count, lo
static struct watchdog_info ident = { static struct watchdog_info ident = {
.options = WDIOF_SETTIMEOUT, .options = WDIOF_SETTIMEOUT,
.identity = "Winbond 83977" .identity = "Winbond 83977",
}; };
static int wdt977_ioctl(struct inode *inode, struct file *file, static int wdt977_ioctl(struct inode *inode, struct file *file,
...@@ -342,7 +342,7 @@ static struct miscdevice wdt977_miscdev= ...@@ -342,7 +342,7 @@ static struct miscdevice wdt977_miscdev=
{ {
.minor = WATCHDOG_MINOR, .minor = WATCHDOG_MINOR,
.name = "watchdog", .name = "watchdog",
.fops = &wdt977_fops .fops = &wdt977_fops,
}; };
static int __init nwwatchdog_init(void) static int __init nwwatchdog_init(void)
......
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