From 3c3d984f818949007ca881e04b9fcf9650031ea0 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Thu, 4 Oct 2012 15:16:37 +0100 Subject: [PATCH] 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 --- comedi/drivers/amplc_dio200.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.26.2