staging: comedi: rti802: tidy up the subdevice init
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 13 Mar 2014 22:48:40 +0000 (15:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Mar 2014 21:20:09 +0000 (14:20 -0700)
For aesthetics, add some whitespace to the 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/rti802.c

index d20eb629f9f93153c1a7b9c535a30167bbcfc9ba..96556575235af07e62113d4719046aab4dc02330 100644 (file)
@@ -109,22 +109,21 @@ static int rti802_attach(struct comedi_device *dev, struct comedi_devconfig *it)
        if (ret)
                return ret;
 
+       /* Analog Output subdevice */
        s = &dev->subdevices[0];
-       /* ao subdevice */
-       s->type = COMEDI_SUBD_AO;
-       s->subdev_flags = SDF_WRITABLE;
-       s->maxdata = 0xfff;
-       s->n_chan = 8;
-       s->insn_read = rti802_ao_insn_read;
-       s->insn_write = rti802_ao_insn_write;
+       s->type         = COMEDI_SUBD_AO;
+       s->subdev_flags = SDF_WRITABLE;
+       s->maxdata      = 0xfff;
+       s->n_chan       = 8;
+       s->insn_read    = rti802_ao_insn_read;
+       s->insn_write   = rti802_ao_insn_write;
        s->range_table_list = devpriv->range_type_list;
 
        for (i = 0; i < 8; i++) {
                devpriv->dac_coding[i] = (it->options[3 + 2 * i])
-                   ? (dac_straight)
-                   : (dac_2comp);
+                       ? (dac_straight) : (dac_2comp);
                devpriv->range_type_list[i] = (it->options[2 + 2 * i])
-                   ? &range_unipolar10 : &range_bipolar10;
+                       ? &range_unipolar10 : &range_bipolar10;
        }
 
        return 0;