Commit 79a22d5c authored by Benjamin Adolphi's avatar Benjamin Adolphi Committed by Greg Kroah-Hartman

Staging: comedi: rti800: Checkpatch cleanups

This fixes some checkpatch issues in the rti800 comedi driver.
Signed-off-by: default avatarBenjamin Adolphi <b.adolphi@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 23d53b17
...@@ -240,10 +240,9 @@ static int rti800_ai_insn_read(struct comedi_device *dev, ...@@ -240,10 +240,9 @@ static int rti800_ai_insn_read(struct comedi_device *dev,
data[i] = inb(dev->iobase + RTI800_ADCLO); data[i] = inb(dev->iobase + RTI800_ADCLO);
data[i] |= (0xf & inb(dev->iobase + RTI800_ADCHI)) << 8; data[i] |= (0xf & inb(dev->iobase + RTI800_ADCHI)) << 8;
if (devpriv->adc_coding == adc_2comp) { if (devpriv->adc_coding == adc_2comp)
data[i] ^= 0x800; data[i] ^= 0x800;
} }
}
return i; return i;
} }
...@@ -271,9 +270,9 @@ static int rti800_ao_insn_write(struct comedi_device *dev, ...@@ -271,9 +270,9 @@ static int rti800_ao_insn_write(struct comedi_device *dev,
for (i = 0; i < insn->n; i++) { for (i = 0; i < insn->n; i++) {
devpriv->ao_readback[chan] = d = data[i]; devpriv->ao_readback[chan] = d = data[i];
if (devpriv->dac0_coding == dac_2comp) { if (devpriv->dac0_coding == dac_2comp)
d ^= 0x800; d ^= 0x800;
}
outb(d & 0xff, outb(d & 0xff,
dev->iobase + (chan ? RTI800_DAC1LO : RTI800_DAC0LO)); dev->iobase + (chan ? RTI800_DAC1LO : RTI800_DAC0LO));
outb(d >> 8, outb(d >> 8,
......
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