staging: comedi: addi_apci_1564: add whitespace to subdevice init
authorChase Southwood <chase.southwood@gmail.com>
Sun, 17 Aug 2014 04:25:16 +0000 (23:25 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Aug 2014 20:16:19 +0000 (13:16 -0700)
For purely aesthetic purposes, add some whitespace to subdevice initialization.

Signed-off-by: Chase Southwood <chase.southwood@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Cc: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi_apci_1564.c

index 16c02c8..ce82645 100644 (file)
@@ -377,52 +377,52 @@ static int apci1564_auto_attach(struct comedi_device *dev,
 
        /*  Allocate and Initialise DI Subdevice Structures */
        s = &dev->subdevices[0];
-       s->type = COMEDI_SUBD_DI;
-       s->subdev_flags = SDF_READABLE;
-       s->n_chan = 32;
-       s->maxdata = 1;
-       s->range_table = &range_digital;
-       s->insn_bits = apci1564_di_insn_bits;
+       s->type         = COMEDI_SUBD_DI;
+       s->subdev_flags = SDF_READABLE;
+       s->n_chan       = 32;
+       s->maxdata      = 1;
+       s->range_table  = &range_digital;
+       s->insn_bits    = apci1564_di_insn_bits;
 
        /*  Allocate and Initialise DO Subdevice Structures */
        s = &dev->subdevices[1];
-       s->type = COMEDI_SUBD_DO;
-       s->subdev_flags = SDF_WRITEABLE;
-       s->n_chan = 32;
-       s->maxdata = 1;
-       s->range_table = &range_digital;
-       s->insn_bits = apci1564_do_insn_bits;
+       s->type         = COMEDI_SUBD_DO;
+       s->subdev_flags = SDF_WRITEABLE;
+       s->n_chan       = 32;
+       s->maxdata      = 1;
+       s->range_table  = &range_digital;
+       s->insn_bits    = apci1564_do_insn_bits;
 
        /* Change-Of-State (COS) interrupt subdevice */
        s = &dev->subdevices[2];
        if (dev->irq) {
                dev->read_subdev = s;
-               s->type = COMEDI_SUBD_DI;
-               s->subdev_flags = SDF_READABLE | SDF_CMD_READ;
-               s->n_chan = 1;
-               s->maxdata = 1;
-               s->range_table = &range_digital;
-               s->len_chanlist = 1;
-               s->insn_config = apci1564_cos_insn_config;
-               s->insn_bits = apci1564_cos_insn_bits;
-               s->do_cmdtest = apci1564_cos_cmdtest;
-               s->do_cmd = apci1564_cos_cmd;
-               s->cancel = apci1564_cos_cancel;
+               s->type         = COMEDI_SUBD_DI;
+               s->subdev_flags = SDF_READABLE | SDF_CMD_READ;
+               s->n_chan       = 1;
+               s->maxdata      = 1;
+               s->range_table  = &range_digital;
+               s->len_chanlist = 1;
+               s->insn_config  = apci1564_cos_insn_config;
+               s->insn_bits    = apci1564_cos_insn_bits;
+               s->do_cmdtest   = apci1564_cos_cmdtest;
+               s->do_cmd       = apci1564_cos_cmd;
+               s->cancel       = apci1564_cos_cancel;
        } else {
-               s->type = COMEDI_SUBD_UNUSED;
+               s->type         = COMEDI_SUBD_UNUSED;
        }
 
        /*  Allocate and Initialise Timer Subdevice Structures */
        s = &dev->subdevices[3];
-       s->type = COMEDI_SUBD_TIMER;
-       s->subdev_flags = SDF_WRITEABLE;
-       s->n_chan = 1;
-       s->maxdata = 0;
-       s->len_chanlist = 1;
-       s->range_table = &range_digital;
-       s->insn_write = apci1564_timer_write;
-       s->insn_read = apci1564_timer_read;
-       s->insn_config = apci1564_timer_config;
+       s->type         = COMEDI_SUBD_TIMER;
+       s->subdev_flags = SDF_WRITEABLE;
+       s->n_chan       = 1;
+       s->maxdata      = 0;
+       s->len_chanlist = 1;
+       s->range_table  = &range_digital;
+       s->insn_write   = apci1564_timer_write;
+       s->insn_read    = apci1564_timer_read;
+       s->insn_config  = apci1564_timer_config;
 
        /* Initialize the watchdog subdevice */
        s = &dev->subdevices[4];
@@ -432,12 +432,12 @@ static int apci1564_auto_attach(struct comedi_device *dev,
 
        /* Initialize the diagnostic status subdevice */
        s = &dev->subdevices[5];
-       s->type = COMEDI_SUBD_DI;
-       s->subdev_flags = SDF_READABLE;
-       s->n_chan = 2;
-       s->maxdata = 1;
-       s->range_table = &range_digital;
-       s->insn_bits = apci1564_diag_insn_bits;
+       s->type         = COMEDI_SUBD_DI;
+       s->subdev_flags = SDF_READABLE;
+       s->n_chan       = 2;
+       s->maxdata      = 1;
+       s->range_table  = &range_digital;
+       s->insn_bits    = apci1564_diag_insn_bits;
 
        return 0;
 }