added read_subdev and write_subdev where appropriate
authorDavid Schleef <ds@schleef.org>
Thu, 11 Jan 2001 21:50:56 +0000 (21:50 +0000)
committerDavid Schleef <ds@schleef.org>
Thu, 11 Jan 2001 21:50:56 +0000 (21:50 +0000)
comedi/drivers/adl_pci9118.c
comedi/drivers/das16-new.c
comedi/drivers/das1800.c
comedi/drivers/das800.c
comedi/drivers/dt2814.c
comedi/drivers/dt282x.c
comedi/drivers/ni_atmio16d.c
comedi/drivers/ni_mio_common.c
comedi/drivers/skel.c

index 78a361e38a61144686a4ebbc1e32e876e166fb98..e4a73807ee49bc5360957e7e367dd3f983e5c654 100644 (file)
@@ -1357,6 +1357,7 @@ static int pci9118_attach(comedi_device *dev,comedi_devconfig *it)
         if((ret=alloc_subdevices(dev))<0)
                return ret;
 
+       dev->read_subdev = 0;
        s = dev->subdevices + 0;
        s->type = COMEDI_SUBD_AI;
        s->subdev_flags = SDF_READABLE|SDF_RT|SDF_COMMON|SDF_GROUND|SDF_DIFF;
@@ -1505,4 +1506,5 @@ void cleanup_module(void)
  *            0=use SSHO (pin 45) signal with onboard hardware S&H logic
  *            1=use ADCHN7 (pin 23) signal and use software for timing
  *              (in this case external multiplexor can serve only 128 A/D channels)
-*/
\ No newline at end of file
+*/
+
index 9e09b72ba73f96c762eb38bbb51bef6593810667..fb1a9c01920fa085e9d178a57ade571b3cab02e5 100644 (file)
@@ -1054,6 +1054,7 @@ static int das16_attach(comedi_device *dev, comedi_devconfig *it)
                printk(" ( no irq )\n");
        }
        
+       dev->read_subdev=0;
        s=dev->subdevices+0;
        /* ai */
        if(thisboard->ai){
index 150a921292c574d343bc067408f9d09e9deee3f7..852e98fe24afb4dd5cd3e8ec05f06d8cee051a37 100644 (file)
@@ -651,6 +651,7 @@ static int das1800_attach(comedi_device *dev, comedi_devconfig *it)
        if(alloc_subdevices(dev) < 0)
                return -ENOMEM;
 
+       dev->read_subdev = 0;
        /* analog input subdevice */
        s = dev->subdevices + 0;
        s->type = COMEDI_SUBD_AI;
index 6ff5bcc9ffa39cab36a95594e6be1fa8a00e35fc..0b4222d23fdfd0cbf25ab230d7dfeb660a4f2ea0 100644 (file)
@@ -342,6 +342,7 @@ static int das800_attach(comedi_device *dev, comedi_devconfig *it)
        if(alloc_subdevices(dev) < 0)
                return -ENOMEM;
 
+       dev->read_subdev = 0;
        /* analog input subdevice */
        s = dev->subdevices + 0;
        s->type = COMEDI_SUBD_AI;
index 0f92e630ef44da39a8dba31360423b0d826ec77f..882870269e2c81eb116c92eb479e719cb89e95b3 100644 (file)
@@ -318,6 +318,7 @@ static int dt2814_attach(comedi_device *dev,comedi_devconfig *it)
        if((ret=alloc_private(dev,sizeof(dt2814_private)))<0)
                return ret;
 
+       dev->read_subdev = 0;
        s=dev->subdevices+0;
        s->type=COMEDI_SUBD_AI;
        s->subdev_flags=SDF_READABLE;
index bf747c2030e75f833ae4be8b529a93a36fad17b7..96f227f27cb6702566e083989f692efd87646424 100644 (file)
@@ -1469,6 +1469,7 @@ static int dt282x_attach(comedi_device * dev, comedi_devconfig * it)
 
        s=dev->subdevices+0;
 
+       dev->read_subdev=0;
        /* ai subdevice */
        s->type=COMEDI_SUBD_AI;
        s->subdev_flags=SDF_READABLE|((it->options[opt_diff])?SDF_DIFF:SDF_COMMON);
@@ -1491,6 +1492,7 @@ static int dt282x_attach(comedi_device * dev, comedi_devconfig * it)
 
        s++;
        if((s->n_chan=boardtype.dachan)){
+               dev->write_subdev=1;
                /* ao subsystem */
                s->type=COMEDI_SUBD_AO;
                s->subdev_flags=SDF_WRITEABLE;
index 43b87e885f548664350b69e33cadfb346fbc26be..5455cb9c870dbe62f30fd420fe409267ba86e1b4 100644 (file)
@@ -765,6 +765,7 @@ static int atmio16d_attach(comedi_device * dev, comedi_devconfig * it)
        devpriv->dac1_coding = it->options[12];
 
        
+       dev->read_subdev = 0;
        /* setup sub-devices */
        s=dev->subdevices+0;
        /* ai subdevice */
index fb923825e7274497f2995b4660d5f8d954968a22..9cf29498935fcc3b29def8e7ec0b9a7ab34c7a15 100644 (file)
@@ -2003,6 +2003,7 @@ static int ni_E_init(comedi_device *dev,comedi_devconfig *it)
        
        /* analog input subdevice */
 
+       dev->read_subdev=0;
        s=dev->subdevices+0;
        s->type=COMEDI_SUBD_AI;
        s->subdev_flags=SDF_READABLE|SDF_RT|SDF_GROUND|SDF_COMMON|SDF_DIFF|SDF_OTHER;
@@ -2024,6 +2025,7 @@ static int ni_E_init(comedi_device *dev,comedi_devconfig *it)
        /* analog output subdevice */
        /* XXX what about boards without ao? */
 
+       dev->write_subdev=1;
        s=dev->subdevices+1;
        if(boardtype.n_aochan){
                s->type=COMEDI_SUBD_AO;
index 1d02a89a0b6af8cfd74a8361aee7b4270f891be0..b059011a2065ffe0556c5c1dfa22ecc1573ebda8 100644 (file)
@@ -171,6 +171,7 @@ static int skel_attach(comedi_device *dev,comedi_devconfig *it)
                return -ENOMEM;
 
        s=dev->subdevices+0;
+       dev->read_subdev=0;
        /* analog input subdevice */
        s->type=COMEDI_SUBD_AI;
        s->subdev_flags=SDF_READABLE;