From: Frank Mori Hess Date: Mon, 17 Jun 2002 23:20:50 +0000 (+0000) Subject: enabled trimpot subdevice X-Git-Tag: r0_7_66~192 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=37249122211e1b6774ca6b5c98973913c0ec7c0a;p=comedi.git enabled trimpot subdevice --- 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 );