added initialization of s->len_chanlist
authorFrank Mori Hess <fmhess@speakeasy.net>
Mon, 9 Jul 2001 21:13:10 +0000 (21:13 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Mon, 9 Jul 2001 21:13:10 +0000 (21:13 +0000)
comedi/drivers/cb_pcidas.c

index 418c37b65e39d24424788b2dffcd3861f26f06d9..c3fe17bf405b7b7b65ead91fc45132488865dc29 100644 (file)
@@ -520,6 +520,7 @@ found:
        s->subdev_flags = SDF_READABLE | SDF_GROUND | SDF_COMMON | SDF_DIFF;
        /* WARNING: Number of inputs in differential mode is ignored */
        s->n_chan = thisboard->ai_se_chans;
+       s->len_chanlist = thisboard->ai_se_chans;
        s->maxdata = (1 << thisboard->ai_bits) - 1;
        s->range_table = thisboard->ranges;
        s->insn_read = cb_pcidas_ai_rinsn;