diff options
author | J. Ali Harlow <ali@avrc.city.ac.uk> | 2011-05-18 19:18:52 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-05-18 14:32:05 -0700 |
commit | 85a2f34f4ecd48ce27f8ecc2d58ab66c05d55a9a (patch) | |
tree | e63d0d39a5a96cff76806d7b6cc1019d51f76f84 /drivers/staging/comedi | |
parent | 587e500c40aef11163bf09d367b5c3b3aba820cc (diff) |
comedi vmk80xx: Digitial I/O should have a maxdata of 1
Digitial input and output sub-devices were reporting a maxdata of
0x1F and 0xFF respectively. They should both be 1.
Signed-off-by: J. Ali Harlow <ali@avrc.city.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/comedi')
-rw-r--r-- | drivers/staging/comedi/drivers/vmk80xx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/comedi/drivers/vmk80xx.c b/drivers/staging/comedi/drivers/vmk80xx.c index 5d83bb66714..01cfb7695f7 100644 --- a/drivers/staging/comedi/drivers/vmk80xx.c +++ b/drivers/staging/comedi/drivers/vmk80xx.c @@ -1138,7 +1138,7 @@ static int vmk80xx_attach(struct comedi_device *cdev, s->type = COMEDI_SUBD_DI; s->subdev_flags = SDF_READABLE | SDF_GROUND; s->n_chan = dev->board.di_chans; - s->maxdata = (1 << dev->board.di_bits) - 1; + s->maxdata = 1; s->insn_read = vmk80xx_di_rinsn; /* Digital output subdevice */ @@ -1146,7 +1146,7 @@ static int vmk80xx_attach(struct comedi_device *cdev, s->type = COMEDI_SUBD_DO; s->subdev_flags = SDF_WRITEABLE | SDF_GROUND; s->n_chan = dev->board.do_chans; - s->maxdata = (1 << dev->board.do_bits) - 1; + s->maxdata = 1; s->insn_write = vmk80xx_do_winsn; if (dev->board.model == VMK8061_MODEL) { |