From: Ian Abbott Date: Thu, 4 Oct 2012 14:16:37 +0000 (+0100) Subject: amplc_dio200: fix subdevice type for 'timer' subdevice X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3c3d984f818949007ca881e04b9fcf9650031ea0;p=comedi.git amplc_dio200: fix subdevice type for 'timer' subdevice 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 --- diff --git a/comedi/drivers/amplc_dio200.c b/comedi/drivers/amplc_dio200.c index 65250cb0..ccf301c7 100644 --- a/comedi/drivers/amplc_dio200.c +++ b/comedi/drivers/amplc_dio200.c @@ -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) { - s->type = COMEDI_SUBD_COUNTER; + s->type = COMEDI_SUBD_TIMER; s->subdev_flags = SDF_READABLE | SDF_LSAMPL; s->n_chan = 1; s->maxdata = 0xFFFFFFFF;