staging: comedi: amplc_pc263: tidy up digital output subdevice init
For aesthetics, add some whitespace to the digital output subdevice initialization. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
411059f701
commit
9f37d399f1
|
@ -80,14 +80,15 @@ static int pc263_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
/* Digital Output subdevice */
|
||||||
s = &dev->subdevices[0];
|
s = &dev->subdevices[0];
|
||||||
/* digital output subdevice */
|
s->type = COMEDI_SUBD_DO;
|
||||||
s->type = COMEDI_SUBD_DO;
|
s->subdev_flags = SDF_WRITABLE;
|
||||||
s->subdev_flags = SDF_WRITABLE;
|
s->n_chan = 16;
|
||||||
s->n_chan = 16;
|
s->maxdata = 1;
|
||||||
s->maxdata = 1;
|
s->range_table = &range_digital;
|
||||||
s->range_table = &range_digital;
|
s->insn_bits = pc263_do_insn_bits;
|
||||||
s->insn_bits = pc263_do_insn_bits;
|
|
||||||
/* read initial relay state */
|
/* read initial relay state */
|
||||||
s->state = inb(dev->iobase) | (inb(dev->iobase + 1) << 8);
|
s->state = inb(dev->iobase) | (inb(dev->iobase + 1) << 8);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue