Skip to content

Commit

Permalink
comedi vmk80xx: Digitial I/O should have a maxdata of 1
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
J. Ali Harlow authored and Greg Kroah-Hartman committed May 18, 2011
1 parent 587e500 commit 85a2f34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/comedi/drivers/vmk80xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1138,15 +1138,15 @@ 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 */
s = cdev->subdevices + VMK80XX_SUBD_DO;
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) {
Expand Down

0 comments on commit 85a2f34

Please sign in to comment.