Commit f764df88 authored by Roel Kluin's avatar Roel Kluin Committed by Greg Kroah-Hartman

staging: comedi: fix missing parentheses

Add missing parentheses.
Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent c3e2354e
...@@ -460,9 +460,9 @@ static int pcl818_ao_insn_write(struct comedi_device *dev, struct comedi_subdevi ...@@ -460,9 +460,9 @@ static int pcl818_ao_insn_write(struct comedi_device *dev, struct comedi_subdevi
for (n = 0; n < insn->n; n++) { for (n = 0; n < insn->n; n++) {
devpriv->ao_readback[chan] = data[n]; devpriv->ao_readback[chan] = data[n];
outb((data[n] & 0x000f) << 4, dev->iobase + outb((data[n] & 0x000f) << 4, dev->iobase +
(chan) ? PCL718_DA2_LO : PCL818_DA_LO); (chan ? PCL718_DA2_LO : PCL818_DA_LO));
outb((data[n] & 0x0ff0) >> 4, dev->iobase + outb((data[n] & 0x0ff0) >> 4, dev->iobase +
(chan) ? PCL718_DA2_HI : PCL818_DA_HI); (chan ? PCL718_DA2_HI : PCL818_DA_HI));
} }
return n; return n;
......
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