Commit 61cd983c authored by Tomas Melin's avatar Tomas Melin Committed by Greg Kroah-Hartman

Staging: Comedi adv_pci1710 : Corrected over 80 column warnings

Indentation problems aswell as various comments and code lines longer
than 80 chars fixed in file adv_pci1710.c
Signed-off-by: default avatarTomas Melin <tomas.melin@iki.fi>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 20416257
...@@ -1222,14 +1222,14 @@ static void setup_channel_list(struct comedi_device *dev, ...@@ -1222,14 +1222,14 @@ static void setup_channel_list(struct comedi_device *dev,
DPRINTK("SegLen: %d\n", seglen); DPRINTK("SegLen: %d\n", seglen);
for (i = 0; i < seglen; i++) { /* store range list to card */ for (i = 0; i < seglen; i++) { /* store range list to card */
chanprog = muxonechan[CR_CHAN(chanlist[i])]; chanprog = muxonechan[CR_CHAN(chanlist[i])];
outw(chanprog, dev->iobase + PCI171x_MUX); /* select channel */ outw(chanprog, dev->iobase + PCI171x_MUX); /* select channel */
range = this_board->rangecode_ai[CR_RANGE(chanlist[i])]; range = this_board->rangecode_ai[CR_RANGE(chanlist[i])];
if (CR_AREF(chanlist[i]) == AREF_DIFF) if (CR_AREF(chanlist[i]) == AREF_DIFF)
range |= 0x0020; range |= 0x0020;
outw(range, dev->iobase + PCI171x_RANGE); /* select gain */ outw(range, dev->iobase + PCI171x_RANGE); /* select gain */
#ifdef PCI171x_PARANOIDCHECK #ifdef PCI171x_PARANOIDCHECK
devpriv->act_chanlist[i] = devpriv->act_chanlist[i] =
(CR_CHAN(chanlist[i]) << 12) & 0xf000; (CR_CHAN(chanlist[i]) << 12) & 0xf000;
#endif #endif
DPRINTK("GS: %2d. [%4x]=%4x %4x\n", i, chanprog, range, DPRINTK("GS: %2d. [%4x]=%4x %4x\n", i, chanprog, range,
devpriv->act_chanlist[i]); devpriv->act_chanlist[i]);
...@@ -1237,13 +1237,14 @@ static void setup_channel_list(struct comedi_device *dev, ...@@ -1237,13 +1237,14 @@ static void setup_channel_list(struct comedi_device *dev,
#ifdef PCI171x_PARANOIDCHECK #ifdef PCI171x_PARANOIDCHECK
for ( ; i < n_chan; i++) { /* store remainder of channel list */ for ( ; i < n_chan; i++) { /* store remainder of channel list */
devpriv->act_chanlist[i] = devpriv->act_chanlist[i] =
(CR_CHAN(chanlist[i]) << 12) & 0xf000; (CR_CHAN(chanlist[i]) << 12) & 0xf000;
} }
#endif #endif
devpriv->ai_et_MuxVal = devpriv->ai_et_MuxVal =
CR_CHAN(chanlist[0]) | (CR_CHAN(chanlist[seglen - 1]) << 8); CR_CHAN(chanlist[0]) | (CR_CHAN(chanlist[seglen - 1]) << 8);
outw(devpriv->ai_et_MuxVal, dev->iobase + PCI171x_MUX); /* select channel interval to scan */ /* select channel interval to scan */
outw(devpriv->ai_et_MuxVal, dev->iobase + PCI171x_MUX);
DPRINTK("MUX: %4x L%4x.H%4x\n", DPRINTK("MUX: %4x L%4x.H%4x\n",
CR_CHAN(chanlist[0]) | (CR_CHAN(chanlist[seglen - 1]) << 8), CR_CHAN(chanlist[0]) | (CR_CHAN(chanlist[seglen - 1]) << 8),
CR_CHAN(chanlist[0]), CR_CHAN(chanlist[seglen - 1])); CR_CHAN(chanlist[0]), CR_CHAN(chanlist[seglen - 1]));
......
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