summaryrefslogtreecommitdiff
path: root/drivers/staging/comedi
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-11-13 20:48:18 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-13 23:12:55 (GMT)
commit3f0732a724d3d454a264a7ac2313313cf95a52bf (patch)
treecc23adc44520e769d57508841b760b6865c9467e /drivers/staging/comedi
parent07e957120d79f41463023c302274ba26c994d789 (diff)
downloadlinux-fsl-qoriq-3f0732a724d3d454a264a7ac2313313cf95a52bf.tar.xz
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: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi')
-rw-r--r--drivers/staging/comedi/drivers/addi_apci_1516.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/staging/comedi/drivers/addi_apci_1516.c b/drivers/staging/comedi/drivers/addi_apci_1516.c
index 952142a..af22912 100644
--- a/drivers/staging/comedi/drivers/addi_apci_1516.c
+++ b/drivers/staging/comedi/drivers/addi_apci_1516.c
@@ -256,7 +256,7 @@ static int __devinit apci1516_auto_attach(struct comedi_device *dev,
if (ret)
return ret;
- /* Allocate and Initialise DI Subdevice Structures */
+ /* Initialize the digital input subdevice */
s = &dev->subdevices[0];
if (this_board->di_nchan) {
s->type = COMEDI_SUBD_DI;
@@ -268,7 +268,8 @@ static int __devinit apci1516_auto_attach(struct comedi_device *dev,
} else {
s->type = COMEDI_SUBD_UNUSED;
}
- /* Allocate and Initialise DO Subdevice Structures */
+
+ /* Initialize the digital output subdevice */
s = &dev->subdevices[1];
if (this_board->do_nchan) {
s->type = COMEDI_SUBD_DO;
@@ -281,7 +282,7 @@ static int __devinit apci1516_auto_attach(struct comedi_device *dev,
s->type = COMEDI_SUBD_UNUSED;
}
- /* Allocate and Initialise Timer Subdevice Structures */
+ /* Initialize the watchdog subdevice */
s = &dev->subdevices[2];
if (this_board->has_wdog) {
s->type = COMEDI_SUBD_TIMER;