wan: dscc4: fix various indentation issues
There are some lines that have indentation issues, fix these. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
039d52e15e
commit
5191673b69
@ -456,16 +456,16 @@ static int state_check(u32 state, struct dscc4_dev_priv *dpriv,
|
|||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
if (debug > 1) {
|
if (debug > 1) {
|
||||||
if (SOURCE_ID(state) != dpriv->dev_id) {
|
if (SOURCE_ID(state) != dpriv->dev_id) {
|
||||||
printk(KERN_DEBUG "%s (%s): Source Id=%d, state=%08x\n",
|
printk(KERN_DEBUG "%s (%s): Source Id=%d, state=%08x\n",
|
||||||
dev->name, msg, SOURCE_ID(state), state );
|
dev->name, msg, SOURCE_ID(state), state);
|
||||||
ret = -1;
|
ret = -1;
|
||||||
}
|
}
|
||||||
if (state & 0x0df80c00) {
|
if (state & 0x0df80c00) {
|
||||||
printk(KERN_DEBUG "%s (%s): state=%08x (UFO alert)\n",
|
printk(KERN_DEBUG "%s (%s): state=%08x (UFO alert)\n",
|
||||||
dev->name, msg, state);
|
dev->name, msg, state);
|
||||||
ret = -1;
|
ret = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@ -1760,25 +1760,25 @@ try:
|
|||||||
} else { /* SccEvt */
|
} else { /* SccEvt */
|
||||||
if (debug > 1) {
|
if (debug > 1) {
|
||||||
//FIXME: verifier la presence de tous les evenements
|
//FIXME: verifier la presence de tous les evenements
|
||||||
static struct {
|
static struct {
|
||||||
u32 mask;
|
u32 mask;
|
||||||
const char *irq_name;
|
const char *irq_name;
|
||||||
} evts[] = {
|
} evts[] = {
|
||||||
{ 0x00008000, "TIN"},
|
{ 0x00008000, "TIN"},
|
||||||
{ 0x00000020, "RSC"},
|
{ 0x00000020, "RSC"},
|
||||||
{ 0x00000010, "PCE"},
|
{ 0x00000010, "PCE"},
|
||||||
{ 0x00000008, "PLLA"},
|
{ 0x00000008, "PLLA"},
|
||||||
{ 0, NULL}
|
{ 0, NULL}
|
||||||
}, *evt;
|
}, *evt;
|
||||||
|
|
||||||
for (evt = evts; evt->irq_name; evt++) {
|
for (evt = evts; evt->irq_name; evt++) {
|
||||||
if (state & evt->mask) {
|
if (state & evt->mask) {
|
||||||
printk(KERN_DEBUG "%s: %s\n",
|
printk(KERN_DEBUG "%s: %s\n",
|
||||||
dev->name, evt->irq_name);
|
dev->name, evt->irq_name);
|
||||||
if (!(state &= ~evt->mask))
|
if (!(state &= ~evt->mask))
|
||||||
goto try;
|
goto try;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if (!(state &= ~0x0000c03c))
|
if (!(state &= ~0x0000c03c))
|
||||||
goto try;
|
goto try;
|
||||||
|
Loading…
Reference in New Issue
Block a user