enabled trimpot subdevice
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 17 Jun 2002 23:20:50 +0000 (23:20 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 17 Jun 2002 23:20:50 +0000 (23:20 +0000)
comedi/drivers/cb_pcidas.c

index 927d521da02feacb2108ab5faa88cb719478e331..feed56fb7e19c447b15279de1398c0ba9a4f1478 100644 (file)
@@ -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 );