Commit b36e4fa7 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: me4000: tidy up analog output subdevice init

For aesthetics, add some white space to the analog output subdevice
initialization.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 607d9939
...@@ -1213,17 +1213,13 @@ static int me4000_auto_attach(struct comedi_device *dev, ...@@ -1213,17 +1213,13 @@ static int me4000_auto_attach(struct comedi_device *dev,
s->do_cmd = me4000_ai_do_cmd; s->do_cmd = me4000_ai_do_cmd;
} }
/*========================================================================= /* Analog Output subdevice */
Analog output subdevice
========================================================================*/
s = &dev->subdevices[1]; s = &dev->subdevices[1];
if (board->has_ao) { if (board->has_ao) {
s->type = COMEDI_SUBD_AO; s->type = COMEDI_SUBD_AO;
s->subdev_flags = SDF_WRITABLE | SDF_COMMON | SDF_GROUND; s->subdev_flags = SDF_WRITABLE | SDF_COMMON | SDF_GROUND;
s->n_chan = 4; s->n_chan = 4;
s->maxdata = 0xFFFF; /* 16 bit DAC */ s->maxdata = 0xffff;
s->range_table = &range_bipolar10; s->range_table = &range_bipolar10;
s->insn_write = me4000_ao_insn_write; s->insn_write = me4000_ao_insn_write;
......
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