projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04983cc
)
don't set write_subdev for pcidas-4020
author
Frank Mori Hess
<fmhess@speakeasy.net>
Sat, 30 Jul 2005 21:26:24 +0000
(21:26 +0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Sat, 30 Jul 2005 21:26:24 +0000
(21:26 +0000)
comedi/drivers/cb_pcidas64.c
patch
|
blob
|
history
diff --git
a/comedi/drivers/cb_pcidas64.c
b/comedi/drivers/cb_pcidas64.c
index 015690bea49ad6500ac596772f63725cf6ef24fd..56e8454a5e944cfbbc49f7136a844ff7e19b30cd 100644
(file)
--- a/
comedi/drivers/cb_pcidas64.c
+++ b/
comedi/drivers/cb_pcidas64.c
@@
-1387,7
+1387,6
@@
static int setup_subdevices(comedi_device *dev)
s = dev->subdevices + 1;
if(board(dev)->ao_nchan)
{
- dev->write_subdev = s;
s->type = COMEDI_SUBD_AO;
s->subdev_flags = SDF_READABLE | SDF_WRITABLE | SDF_GROUND;
s->n_chan = board(dev)->ao_nchan;
@@
-1397,6
+1396,7
@@
static int setup_subdevices(comedi_device *dev)
s->insn_write = ao_winsn;
if(ao_cmd_is_supported(board(dev)))
{
+ dev->write_subdev = s;
s->do_cmdtest = ao_cmdtest;
s->do_cmd = ao_cmd;
s->len_chanlist = board(dev)->ao_nchan;
@@
-1405,7
+1405,6
@@
static int setup_subdevices(comedi_device *dev)
} else
{
s->type = COMEDI_SUBD_UNUSED;
- dev->write_subdev = NULL;
}
// digital input