]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: comedi: adl_pci9118: tidy up analog output subdevice init
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 4 Sep 2014 17:39:41 +0000 (10:39 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 20:54:07 +0000 (13:54 -0700)
For aesthetics, add some whitespace to the analog output subdevice init.

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/adl_pci9118.c

index f9598b0702a221906a8bcc68328fe0f2de951715..2ff9bc79bb18a5a1cb1a54f5225f242fe58f5b2d 100644 (file)
@@ -1889,14 +1889,15 @@ static int pci9118_common_attach(struct comedi_device *dev, int disable_irq,
                devpriv->ai_ns_min = 3000;
        }
 
+       /* Analog Output subdevice */
        s = &dev->subdevices[1];
-       s->type = COMEDI_SUBD_AO;
-       s->subdev_flags = SDF_WRITABLE | SDF_GROUND | SDF_COMMON;
-       s->n_chan = 2;
-       s->maxdata = 0x0fff;
-       s->range_table = &range_bipolar10;
-       s->insn_write = pci9118_insn_write_ao;
-       s->insn_read = pci9118_insn_read_ao;
+       s->type         = COMEDI_SUBD_AO;
+       s->subdev_flags = SDF_WRITABLE | SDF_GROUND | SDF_COMMON;
+       s->n_chan       = 2;
+       s->maxdata      = 0x0fff;
+       s->range_table  = &range_bipolar10;
+       s->insn_write   = pci9118_insn_write_ao;
+       s->insn_read    = pci9118_insn_read_ao;
 
        /* Digital Input subdevice */
        s = &dev->subdevices[2];