Commit 3f0732a7 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: addi_apci_1516: reword the initialization comments

The subdevice init does not do any allocation, this was already done
by comedi_alloc_subdevices(). Reword the comments a bit.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 07e95712
...@@ -256,7 +256,7 @@ static int __devinit apci1516_auto_attach(struct comedi_device *dev, ...@@ -256,7 +256,7 @@ static int __devinit apci1516_auto_attach(struct comedi_device *dev,
if (ret) if (ret)
return ret; return ret;
/* Allocate and Initialise DI Subdevice Structures */ /* Initialize the digital input subdevice */
s = &dev->subdevices[0]; s = &dev->subdevices[0];
if (this_board->di_nchan) { if (this_board->di_nchan) {
s->type = COMEDI_SUBD_DI; s->type = COMEDI_SUBD_DI;
...@@ -268,7 +268,8 @@ static int __devinit apci1516_auto_attach(struct comedi_device *dev, ...@@ -268,7 +268,8 @@ static int __devinit apci1516_auto_attach(struct comedi_device *dev,
} else { } else {
s->type = COMEDI_SUBD_UNUSED; s->type = COMEDI_SUBD_UNUSED;
} }
/* Allocate and Initialise DO Subdevice Structures */
/* Initialize the digital output subdevice */
s = &dev->subdevices[1]; s = &dev->subdevices[1];
if (this_board->do_nchan) { if (this_board->do_nchan) {
s->type = COMEDI_SUBD_DO; s->type = COMEDI_SUBD_DO;
...@@ -281,7 +282,7 @@ static int __devinit apci1516_auto_attach(struct comedi_device *dev, ...@@ -281,7 +282,7 @@ static int __devinit apci1516_auto_attach(struct comedi_device *dev,
s->type = COMEDI_SUBD_UNUSED; s->type = COMEDI_SUBD_UNUSED;
} }
/* Allocate and Initialise Timer Subdevice Structures */ /* Initialize the watchdog subdevice */
s = &dev->subdevices[2]; s = &dev->subdevices[2];
if (this_board->has_wdog) { if (this_board->has_wdog) {
s->type = COMEDI_SUBD_TIMER; s->type = COMEDI_SUBD_TIMER;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment