mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
isdn: whitespace coding style cleanup
isdn source code uses a not-current coding style. Update the coding style used on a per-line basis so that git diff -w shows only elided blank lines at EOF. Done with emacs and some scripts and some typing. Built x86 allyesconfig. No detected change in objdump -d or size. Signed-off-by: Joe Perches <joe@perches.com>
This commit is contained in:
parent
0b0a635f79
commit
475be4d85a
314 changed files with 49170 additions and 49266 deletions
|
@ -31,7 +31,7 @@ static void setup_ports(int card)
|
|||
|
||||
/* And the IRQ */
|
||||
outb((sc_adapter[card]->interrupt | 0x80),
|
||||
sc_adapter[card]->ioport[IRQ_SELECT]);
|
||||
sc_adapter[card]->ioport[IRQ_SELECT]);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -50,18 +50,18 @@ void sc_check_reset(unsigned long data)
|
|||
int card = (unsigned int) data;
|
||||
|
||||
pr_debug("%s: check_timer timer called\n",
|
||||
sc_adapter[card]->devicename);
|
||||
sc_adapter[card]->devicename);
|
||||
|
||||
/* Setup the io ports */
|
||||
setup_ports(card);
|
||||
|
||||
spin_lock_irqsave(&sc_adapter[card]->lock, flags);
|
||||
outb(sc_adapter[card]->ioport[sc_adapter[card]->shmem_pgport],
|
||||
(sc_adapter[card]->shmem_magic>>14) | 0x80);
|
||||
(sc_adapter[card]->shmem_magic >> 14) | 0x80);
|
||||
sig = (unsigned long) *((unsigned long *)(sc_adapter[card]->rambase + SIG_OFFSET));
|
||||
|
||||
/* check the signature */
|
||||
if(sig == SIGNATURE) {
|
||||
if (sig == SIGNATURE) {
|
||||
flushreadfifo(card);
|
||||
spin_unlock_irqrestore(&sc_adapter[card]->lock, flags);
|
||||
/* See if we need to do a startproc */
|
||||
|
@ -69,8 +69,8 @@ void sc_check_reset(unsigned long data)
|
|||
startproc(card);
|
||||
} else {
|
||||
pr_debug("%s: No signature yet, waiting another %lu jiffies.\n",
|
||||
sc_adapter[card]->devicename, CHECKRESET_TIME);
|
||||
mod_timer(&sc_adapter[card]->reset_timer, jiffies+CHECKRESET_TIME);
|
||||
sc_adapter[card]->devicename, CHECKRESET_TIME);
|
||||
mod_timer(&sc_adapter[card]->reset_timer, jiffies + CHECKRESET_TIME);
|
||||
spin_unlock_irqrestore(&sc_adapter[card]->lock, flags);
|
||||
}
|
||||
}
|
||||
|
@ -91,19 +91,19 @@ void check_phystat(unsigned long data)
|
|||
int card = (unsigned int) data;
|
||||
|
||||
pr_debug("%s: Checking status...\n", sc_adapter[card]->devicename);
|
||||
/*
|
||||
/*
|
||||
* check the results of the last PhyStat and change only if
|
||||
* has changed drastically
|
||||
*/
|
||||
if (sc_adapter[card]->nphystat && !sc_adapter[card]->phystat) { /* All is well */
|
||||
pr_debug("PhyStat transition to RUN\n");
|
||||
pr_info("%s: Switch contacted, transmitter enabled\n",
|
||||
pr_info("%s: Switch contacted, transmitter enabled\n",
|
||||
sc_adapter[card]->devicename);
|
||||
indicate_status(card, ISDN_STAT_RUN, 0, NULL);
|
||||
}
|
||||
else if (!sc_adapter[card]->nphystat && sc_adapter[card]->phystat) { /* All is not well */
|
||||
pr_debug("PhyStat transition to STOP\n");
|
||||
pr_info("%s: Switch connection lost, transmitter disabled\n",
|
||||
pr_info("%s: Switch connection lost, transmitter disabled\n",
|
||||
sc_adapter[card]->devicename);
|
||||
|
||||
indicate_status(card, ISDN_STAT_STOP, 0, NULL);
|
||||
|
@ -113,11 +113,10 @@ void check_phystat(unsigned long data)
|
|||
|
||||
/* Reinitialize the timer */
|
||||
spin_lock_irqsave(&sc_adapter[card]->lock, flags);
|
||||
mod_timer(&sc_adapter[card]->stat_timer, jiffies+CHECKSTAT_TIME);
|
||||
mod_timer(&sc_adapter[card]->stat_timer, jiffies + CHECKSTAT_TIME);
|
||||
spin_unlock_irqrestore(&sc_adapter[card]->lock, flags);
|
||||
|
||||
/* Send a new cePhyStatus message */
|
||||
sendmessage(card, CEPID,ceReqTypePhy,ceReqClass2,
|
||||
ceReqPhyStatus,0,0,NULL);
|
||||
sendmessage(card, CEPID, ceReqTypePhy, ceReqClass2,
|
||||
ceReqPhyStatus, 0, 0, NULL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue