projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77dee63
)
Add len_chanlist initialization
author
David Schleef
<ds@schleef.org>
Tue, 10 Jul 2001 20:22:40 +0000
(20:22 +0000)
committer
David Schleef
<ds@schleef.org>
Tue, 10 Jul 2001 20:22:40 +0000
(20:22 +0000)
comedi/drivers/skel.c
patch
|
blob
|
history
diff --git
a/comedi/drivers/skel.c
b/comedi/drivers/skel.c
index 5b5424e24c0725bcd2a72b6b845867346809de26..3b34cb2b77a9182f5e1288e096d50b05d8946ba0 100644
(file)
--- a/
comedi/drivers/skel.c
+++ b/
comedi/drivers/skel.c
@@
-187,9
+187,11
@@
static int skel_attach(comedi_device *dev,comedi_devconfig *it)
s->n_chan=thisboard->ai_chans;
s->maxdata=(1<<thisboard->ai_bits)-1;
s->range_table=&range_bipolar10;
+ s->len_chanlist=16; /* This is the maximum chanlist length that
+ the board can handle */
s->insn_read = &skel_ai_rinsn;
//s->do_cmd = &skel_ai_cmd;
- s->do_cmdtest =
&
skel_ai_cmdtest;
+ s->do_cmdtest = skel_ai_cmdtest;
s=dev->subdevices+1;
/* analog output subdevice */