From 9826df7842c9328e3b1951688d7dfb0fb7478ad6 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sat, 30 Jul 2005 21:26:24 +0000 Subject: [PATCH] don't set write_subdev for pcidas-4020 --- comedi/drivers/cb_pcidas64.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/comedi/drivers/cb_pcidas64.c b/comedi/drivers/cb_pcidas64.c index 015690be..56e8454a 100644 --- 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 -- 2.26.2