staging: comedi: addi_apci_3120: remove test for DO subdevice

The boards supported by this driver all have digital outputs.
Remove the test for it.

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>
This commit is contained in:
H Hartley Sweeten 2012-11-01 17:26:31 -07:00 committed by Greg Kroah-Hartman
parent 53b168b938
commit 43deb75dcc
1 changed files with 13 additions and 17 deletions

View File

@ -259,24 +259,20 @@ static int apci3120_attach_pci(struct comedi_device *dev,
} }
/* Allocate and Initialise DO Subdevice Structures */ /* Allocate and Initialise DO Subdevice Structures */
s = &dev->subdevices[3]; s = &dev->subdevices[3];
if (this_board->i_NbrDoChannel) { s->type = COMEDI_SUBD_DO;
s->type = COMEDI_SUBD_DO; s->subdev_flags =
s->subdev_flags = SDF_READABLE | SDF_WRITEABLE | SDF_GROUND | SDF_COMMON;
SDF_READABLE | SDF_WRITEABLE | SDF_GROUND | SDF_COMMON; s->n_chan = this_board->i_NbrDoChannel;
s->n_chan = this_board->i_NbrDoChannel; s->maxdata = this_board->i_DoMaxdata;
s->maxdata = this_board->i_DoMaxdata; s->len_chanlist = this_board->i_NbrDoChannel;
s->len_chanlist = this_board->i_NbrDoChannel; s->range_table = &range_digital;
s->range_table = &range_digital; s->io_bits = 0xf; /* all bits output */
s->io_bits = 0xf; /* all bits output */
/* insn_config - for digital output memory */ /* insn_config - for digital output memory */
s->insn_config = this_board->do_config; s->insn_config = this_board->do_config;
s->insn_write = this_board->do_write; s->insn_write = this_board->do_write;
s->insn_bits = this_board->do_bits; s->insn_bits = this_board->do_bits;
s->insn_read = this_board->do_read; s->insn_read = this_board->do_read;
} else {
s->type = COMEDI_SUBD_UNUSED;
}
/* Allocate and Initialise Timer Subdevice Structures */ /* Allocate and Initialise Timer Subdevice Structures */
s = &dev->subdevices[4]; s = &dev->subdevices[4];