Commit 6f483279 authored by Tomas Melin's avatar Tomas Melin Committed by Greg Kroah-Hartman

Staging: Comedi adv_pci1710: Fixed indentation

Fixed indentation for print messages and code.
Signed-off-by: default avatarTomas Melin <tomas.melin@iki.fi>
Acked-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 583d8231
...@@ -1173,13 +1173,11 @@ static int check_channel_list(struct comedi_device *dev, ...@@ -1173,13 +1173,11 @@ static int check_channel_list(struct comedi_device *dev,
comedi_error(dev, "Odd channel cannot be differential input!\n"); comedi_error(dev, "Odd channel cannot be differential input!\n");
return 0; return 0;
} }
nowmustbechan = nowmustbechan = (CR_CHAN(chansegment[i - 1]) + 1) % s->n_chan;
(CR_CHAN(chansegment[i - 1]) + 1) % s->n_chan;
if (CR_AREF(chansegment[i - 1]) == AREF_DIFF) if (CR_AREF(chansegment[i - 1]) == AREF_DIFF)
nowmustbechan = (nowmustbechan + 1) % s->n_chan; nowmustbechan = (nowmustbechan + 1) % s->n_chan;
if (nowmustbechan != CR_CHAN(chanlist[i])) { if (nowmustbechan != CR_CHAN(chanlist[i])) {
printk printk("channel list must be continuous! chanlist[%i]=%d but must be %d or %d!\n",
("channel list must be continuous! chanlist[%i]=%d but must be %d or %d!\n",
i, CR_CHAN(chanlist[i]), nowmustbechan, i, CR_CHAN(chanlist[i]), nowmustbechan,
CR_CHAN(chanlist[0])); CR_CHAN(chanlist[0]));
return 0; return 0;
...@@ -1189,15 +1187,14 @@ static int check_channel_list(struct comedi_device *dev, ...@@ -1189,15 +1187,14 @@ static int check_channel_list(struct comedi_device *dev,
for (i = 0, segpos = 0; i < n_chan; i++) { for (i = 0, segpos = 0; i < n_chan; i++) {
if (chanlist[i] != chansegment[i % seglen]) { if (chanlist[i] != chansegment[i % seglen]) {
printk printk("bad channel, reference or range number! chanlist[%i]=%d,%d,%d and not %d,%d,%d!\n",
("bad channel, reference or range number! chanlist[%i]=%d,%d,%d and not %d,%d,%d!\n",
i, CR_CHAN(chansegment[i]), i, CR_CHAN(chansegment[i]),
CR_RANGE(chansegment[i]), CR_RANGE(chansegment[i]),
CR_AREF(chansegment[i]), CR_AREF(chansegment[i]),
CR_CHAN(chanlist[i % seglen]), CR_CHAN(chanlist[i % seglen]),
CR_RANGE(chanlist[i % seglen]), CR_RANGE(chanlist[i % seglen]),
CR_AREF(chansegment[i % seglen])); CR_AREF(chansegment[i % seglen]));
return 0; /* chan/gain list is strange */ return 0;
} }
} }
return seglen; return seglen;
......
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