amplc_dio200: fix subdevice type for 'timer' subdevice
authorIan Abbott <abbotti@mev.co.uk>
Thu, 4 Oct 2012 14:16:37 +0000 (15:16 +0100)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 4 Oct 2012 14:16:37 +0000 (15:16 +0100)
The 'timer' subdevice on the PCIe boards should be of type
COMEDI_SUBD_TIMER, not COMEDI_SUBD_COUNTER.  Fix it.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
comedi/drivers/amplc_dio200.c

index 65250cb08c6146b8c9d8479fdaa56fee0cfbca1b..ccf301c7fd14c39ad3eb648d97445d162bd2ebce 100644 (file)
@@ -1837,7 +1837,7 @@ dio200_subdev_timer_config(comedi_device * dev, comedi_subdevice * s,
 static int
 dio200_subdev_timer_init(comedi_device * dev, comedi_subdevice * s)
 {
 static int
 dio200_subdev_timer_init(comedi_device * dev, comedi_subdevice * s)
 {
-       s->type = COMEDI_SUBD_COUNTER;
+       s->type = COMEDI_SUBD_TIMER;
        s->subdev_flags = SDF_READABLE | SDF_LSAMPL;
        s->n_chan = 1;
        s->maxdata = 0xFFFFFFFF;
        s->subdev_flags = SDF_READABLE | SDF_LSAMPL;
        s->n_chan = 1;
        s->maxdata = 0xFFFFFFFF;