Subdevice 2 (which is a DIO subdevice) has the wrong number of channels,
48 defined by the S626_DIO_CHANNELS macro. That is the total number of
DIO channels to be split over 3 subdevices (subdevices 2, 3, 4 with 16
channels each). Fix the number of channels for subdevice 2.
Spotted by H Hartley Sweeten in the "staging" sources.
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
/* digital I/O subdevice */
s->type = COMEDI_SUBD_DIO;
s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
- s->n_chan = S626_DIO_CHANNELS;
+ s->n_chan = 16;
s->maxdata = 1;
s->io_bits = 0xffff;
s->private = &dio_private_A;