diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2013-06-12 16:22:14 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-17 14:33:56 -0700 |
commit | 308380e69625c347f88ba23da9dc0e9a58918838 (patch) | |
tree | 3857ec756f7631a9ed1e9ce212e751a3f12d8166 /drivers | |
parent | 040540763b5729b99e24c118d4343f489a00b456 (diff) |
staging: comedi: addi_apci_3xxx: tidy up analog input subdevice init
For aesthetic reasnons, add some whitespace to the analog input
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/comedi/drivers/addi_apci_3xxx.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/staging/comedi/drivers/addi_apci_3xxx.c b/drivers/staging/comedi/drivers/addi_apci_3xxx.c index b724cf653080..dbb35c7b45a0 100644 --- a/drivers/staging/comedi/drivers/addi_apci_3xxx.c +++ b/drivers/staging/comedi/drivers/addi_apci_3xxx.c @@ -597,18 +597,18 @@ static int apci3xxx_auto_attach(struct comedi_device *dev, if (ret) return ret; - /* Allocate and Initialise AI Subdevice Structures */ + /* Analog Input subdevice */ s = &dev->subdevices[0]; if (board->ai_n_chan) { dev->read_subdev = s; - s->type = COMEDI_SUBD_AI; - s->subdev_flags = SDF_READABLE | board->ai_subdev_flags; - s->n_chan = board->ai_n_chan; - s->maxdata = board->ai_maxdata; - s->len_chanlist = s->n_chan; - s->range_table = &apci3xxx_ai_range; - s->insn_config = apci3xxx_ai_insn_config; - s->insn_read = apci3xxx_ai_insn_read; + s->type = COMEDI_SUBD_AI; + s->subdev_flags = SDF_READABLE | board->ai_subdev_flags; + s->n_chan = board->ai_n_chan; + s->maxdata = board->ai_maxdata; + s->len_chanlist = s->n_chan; + s->range_table = &apci3xxx_ai_range; + s->insn_config = apci3xxx_ai_insn_config; + s->insn_read = apci3xxx_ai_insn_read; } else { s->type = COMEDI_SUBD_UNUSED; |