From 37249122211e1b6774ca6b5c98973913c0ec7c0a Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 17 Jun 2002 23:20:50 +0000 Subject: [PATCH] enabled trimpot subdevice --- comedi/drivers/cb_pcidas.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/comedi/drivers/cb_pcidas.c b/comedi/drivers/cb_pcidas.c index 927d521d..feed56fb 100644 --- a/comedi/drivers/cb_pcidas.c +++ b/comedi/drivers/cb_pcidas.c @@ -663,16 +663,12 @@ found: // trim potentiometer s = dev->subdevices + 5; - if(0) - { - s->type = COMEDI_SUBD_CALIB; - s->subdev_flags = SDF_READABLE | SDF_WRITABLE | SDF_INTERNAL; - s->n_chan = NUM_CHANNELS_7376; - s->insn_read = trimpot_read_insn; - s->insn_write = trimpot_write_insn; - s->maxdata = 0x7f; - } else - s->type = COMEDI_SUBD_UNUSED; + s->type = COMEDI_SUBD_CALIB; + s->subdev_flags = SDF_READABLE | SDF_WRITABLE | SDF_INTERNAL; + s->n_chan = NUM_CHANNELS_7376; + s->insn_read = trimpot_read_insn; + s->insn_write = trimpot_write_insn; + s->maxdata = 0x7f; // make sure mailbox 4 is empty inl(devpriv->s5933_config + AMCC_OP_REG_IMB4 ); -- 2.26.2