summaryrefslogtreecommitdiff
path: root/drivers/staging/comedi/drivers/pcl724.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2013-06-10 10:17:12 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-11 17:16:48 -0700
commit8091fb739aab867e24d53bda16af2159baa04fd0 (patch)
tree5c587edc6da42fe7cab2805686779779104ee58b /drivers/staging/comedi/drivers/pcl724.c
parente33437fc30826ee8eddbc543a6c77d68ba46254e (diff)
staging: comedi: pcl724: fix 96 DIO configuration option
According to the comedi documentation at the beginning of the file, configuration option 2 sets the number of DIO channels on the boards that support 144 or 96 channels. Fix the (*attach) to use the correct configuration option. 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/staging/comedi/drivers/pcl724.c')
-rw-r--r--drivers/staging/comedi/drivers/pcl724.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/comedi/drivers/pcl724.c b/drivers/staging/comedi/drivers/pcl724.c
index 61479bd2bdc4..68d425f72d1c 100644
--- a/drivers/staging/comedi/drivers/pcl724.c
+++ b/drivers/staging/comedi/drivers/pcl724.c
@@ -106,7 +106,7 @@ static int pcl724_attach(struct comedi_device *dev,
/* Handle PCL-724 in 96 DIO configuration */
if (board->can_have96 &&
- (it->options[1] == 1 || it->options[1] == 96)) {
+ (it->options[2] == 1 || it->options[2] == 96)) {
iorange = 0x10;
n_subdevices = 4;
}