]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: addi_apci_3120: tidy up analog output subdevice init
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 20 Oct 2014 18:34:22 +0000 (11:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2014 07:58:36 +0000 (15:58 +0800)
For aesthetics, add some white space to the analog 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>
drivers/staging/comedi/drivers/addi_apci_3120.c

index 5db52cd043199aab0db8d90d30f1dd1ff3e4232d..8cd3ef13536eecd4971fceb46a078f47f03e49de 100644 (file)
@@ -186,22 +186,22 @@ static int apci3120_auto_attach(struct comedi_device *dev,
        s->do_cmd = apci3120_ai_cmd;
        s->cancel = apci3120_cancel;
 
-       /*  Allocate and Initialise AO Subdevice Structures */
+       /* Analog Output subdevice */
        s = &dev->subdevices[1];
        if (this_board->has_ao) {
-               s->type = COMEDI_SUBD_AO;
-               s->subdev_flags = SDF_WRITEABLE | SDF_GROUND | SDF_COMMON;
-               s->n_chan = 8;
-               s->maxdata = 0x3fff;
-               s->range_table = &range_bipolar10;
-               s->insn_write = apci3120_ao_insn_write;
-               s->insn_read = comedi_readback_insn_read;
+               s->type         = COMEDI_SUBD_AO;
+               s->subdev_flags = SDF_WRITEABLE | SDF_GROUND | SDF_COMMON;
+               s->n_chan       = 8;
+               s->maxdata      = 0x3fff;
+               s->range_table  = &range_bipolar10;
+               s->insn_write   = apci3120_ao_insn_write;
+               s->insn_read    = comedi_readback_insn_read;
 
                ret = comedi_alloc_subdev_readback(s);
                if (ret)
                        return ret;
        } else {
-               s->type = COMEDI_SUBD_UNUSED;
+               s->type         = COMEDI_SUBD_UNUSED;
        }
 
        /*  Allocate and Initialise DI Subdevice Structures */