Globally fix spelling of SDF_WRITABLE
authorDavid Schleef <ds@schleef.org>
Thu, 16 May 2002 22:13:38 +0000 (22:13 +0000)
committerDavid Schleef <ds@schleef.org>
Thu, 16 May 2002 22:13:38 +0000 (22:13 +0000)
46 files changed:
comedi/drivers.c
comedi/drivers/8255.c
comedi/drivers/adl_pci9111.c
comedi/drivers/adl_pci9118.c
comedi/drivers/adv_pci1710.c
comedi/drivers/amplc_pci230.c
comedi/drivers/cb_pcidas.c
comedi/drivers/cb_pcidas64.c
comedi/drivers/cb_pcidda.c
comedi/drivers/comedi_parport.c
comedi/drivers/contec_pci_dio.c
comedi/drivers/daqboard2000.c
comedi/drivers/das08.c
comedi/drivers/das16.c
comedi/drivers/das16m1.c
comedi/drivers/das1800.c
comedi/drivers/das800.c
comedi/drivers/dt2801.c
comedi/drivers/dt2811.c
comedi/drivers/dt2815.c
comedi/drivers/dt2817.c
comedi/drivers/dt282x.c
comedi/drivers/dt3000.c
comedi/drivers/fl512.c
comedi/drivers/icp_multi.c
comedi/drivers/ii_pci20kc.c
comedi/drivers/mpc8260cpm.c
comedi/drivers/multiq3.c
comedi/drivers/ni_670x.c
comedi/drivers/ni_at_ao.c
comedi/drivers/ni_atmio16d.c
comedi/drivers/ni_labpc.c
comedi/drivers/ni_pcidio.c
comedi/drivers/pcl711.c
comedi/drivers/pcl725.c
comedi/drivers/pcl726.c
comedi/drivers/pcl812.c
comedi/drivers/pcl816.c
comedi/drivers/pcl818.c
comedi/drivers/pcm3730.c
comedi/drivers/poc.c
comedi/drivers/rtd520.c
comedi/drivers/rti800.c
comedi/drivers/rti802.c
comedi/drivers/skel.c
comedi/drivers/ssv_dnp.c

index 2f659b9e84693900310879c18d266cd64a7364cd..0a752541ae7f87357bf9250db934b0458ec84255 100644 (file)
@@ -338,7 +338,7 @@ static int insn_rw_emulate_bits(comedi_device *dev,comedi_subdevice *s,
        new_insn.subdev = insn->subdev;
 
        if(insn->insn == INSN_WRITE){
-               if(!(s->subdev_flags & SDF_WRITEABLE))
+               if(!(s->subdev_flags & SDF_WRITABLE))
                        return -EINVAL;
                new_data[0] = 1<<chan; /* mask */
                new_data[1] = data[0]?(1<<chan):0; /* bits */
index ae369047d9894cb30e16eec48d4c656fab97bab0..d4518aaf8e83003be12e0e9a04b8177c8cafd5dd 100644 (file)
@@ -189,7 +189,7 @@ static void do_config(comedi_device *dev,comedi_subdevice *s)
 int subdev_8255_init(comedi_device *dev,comedi_subdevice *s,int (*cb)(int,int,int,unsigned long),unsigned long arg)
 {
        s->type=COMEDI_SUBD_DIO;
-       s->subdev_flags=SDF_READABLE|SDF_WRITEABLE|SDF_RT;
+       s->subdev_flags=SDF_READABLE|SDF_WRITABLE|SDF_RT;
        s->n_chan=24;
        s->range_table=&range_digital;
        s->maxdata=1;
index d210e86e13efb2dfba837d91ca500c5b025e852a..21b16e6e204f470809a0a272947b5355be636ca9 100644 (file)
@@ -1379,7 +1379,7 @@ found:
 
   subdevice                    = dev->subdevices + 1;
   subdevice->type              = COMEDI_SUBD_AO;
-  subdevice->subdev_flags      = SDF_WRITEABLE|SDF_COMMON; 
+  subdevice->subdev_flags      = SDF_WRITABLE|SDF_COMMON; 
   subdevice->n_chan            = board->ao_channel_nbr;
   subdevice->maxdata           = board->ao_resolution_mask;
   subdevice->len_chanlist      = board->ao_channel_nbr;
@@ -1397,7 +1397,7 @@ found:
        
   subdevice                    = dev->subdevices + 3;
   subdevice->type              = COMEDI_SUBD_DO;
-  subdevice->subdev_flags      = SDF_READABLE|SDF_WRITEABLE;
+  subdevice->subdev_flags      = SDF_READABLE|SDF_WRITABLE;
   subdevice->n_chan            = PCI9111_DO_CHANNEL_NBR;
   subdevice->maxdata           = 1;
   subdevice->range_table       = &range_digital;
index b9ef3157792265510ea63a622bc9cd5964fb118d..afe9438cba02d92ae5368b0be44b1b190a56479e 100644 (file)
@@ -2150,7 +2150,7 @@ static int pci9118_attach(comedi_device *dev,comedi_devconfig *it)
 
        s = dev->subdevices + 1;
        s->type = COMEDI_SUBD_AO;
-       s->subdev_flags = SDF_WRITEABLE|SDF_GROUND|SDF_COMMON;
+       s->subdev_flags = SDF_WRITABLE|SDF_GROUND|SDF_COMMON;
        s->n_chan = this_board->n_aochan;
        s->maxdata = this_board->ao_maxdata;
        s->len_chanlist = this_board->n_aochan;
@@ -2170,7 +2170,7 @@ static int pci9118_attach(comedi_device *dev,comedi_devconfig *it)
 
        s = dev->subdevices + 3;
        s->type = COMEDI_SUBD_DO;
-       s->subdev_flags = SDF_WRITEABLE|SDF_GROUND|SDF_COMMON;
+       s->subdev_flags = SDF_WRITABLE|SDF_GROUND|SDF_COMMON;
        s->n_chan = 4;
        s->maxdata = 1;
        s->len_chanlist = 4;
index 421176056c31d3f87923e40ba2c6f6e8dac27175..4172bf6675ead9f380abc50b30b92754ae40f0b6 100644 (file)
@@ -1230,7 +1230,7 @@ static int pci1710_attach(comedi_device *dev,comedi_devconfig *it)
        if (this_board->n_aochan) {
                s = dev->subdevices + subdev;
                s->type = COMEDI_SUBD_AO;
-               s->subdev_flags = SDF_WRITEABLE|SDF_GROUND|SDF_COMMON;
+               s->subdev_flags = SDF_WRITABLE|SDF_GROUND|SDF_COMMON;
                s->n_chan = this_board->n_aochan;
                s->maxdata = this_board->ao_maxdata;
                s->len_chanlist = this_board->n_aochan;
@@ -1263,7 +1263,7 @@ static int pci1710_attach(comedi_device *dev,comedi_devconfig *it)
        if (this_board->n_dochan) {
                s = dev->subdevices + subdev;
                s->type = COMEDI_SUBD_DO;
-               s->subdev_flags = SDF_WRITEABLE|SDF_GROUND|SDF_COMMON;
+               s->subdev_flags = SDF_WRITABLE|SDF_GROUND|SDF_COMMON;
                s->n_chan = this_board->n_dochan;
                s->maxdata = 1;
                s->len_chanlist = this_board->n_dochan;
index 4f4b5c424ec5cee40884f2eea60d78c6668c9913..4b061893d3c66f3726b15c076770744d461410b6 100644 (file)
@@ -407,7 +407,7 @@ static int pci230_attach(comedi_device *dev,comedi_devconfig *it)
        s=dev->subdevices+1;
        /* analog output subdevice */
        s->type=COMEDI_SUBD_AO;
-       s->subdev_flags=SDF_WRITEABLE;
+       s->subdev_flags=SDF_WRITABLE;
        s->n_chan=thisboard->ao_chans;;
        s->maxdata=(1<<thisboard->ao_bits)-1;
        s->range_table=&pci230_ao_range;
index 6ed0d80fb932ba3f2cce27c79e3917e8151e86eb..3c11294c1240bba7ae09d1684723ba9637985f1a 100644 (file)
@@ -610,7 +610,7 @@ found:
        if(thisboard->ao_nchan)
        {
                s->type = COMEDI_SUBD_AO;
-               s->subdev_flags = SDF_READABLE | SDF_WRITEABLE | SDF_GROUND;
+               s->subdev_flags = SDF_READABLE | SDF_WRITABLE | SDF_GROUND;
                s->n_chan = thisboard->ao_nchan;
                // analog out resolution is the same as analog input resolution, so use ai_bits
                s->maxdata = (1 << thisboard->ai_bits) - 1;
index 75d5c64151df18996bb48d445db3f74a118e1611..4d345f0303bbafe6786f2f1f643be42cd1a161ac 100644 (file)
@@ -843,7 +843,7 @@ static int setup_subdevices(comedi_device *dev)
        {
        //      dev->write_subdev = s;
                s->type = COMEDI_SUBD_AO;
-               s->subdev_flags = SDF_READABLE | SDF_WRITEABLE | SDF_GROUND;
+               s->subdev_flags = SDF_READABLE | SDF_WRITABLE | SDF_GROUND;
                s->n_chan = board(dev)->ao_nchan;
                // analog out resolution is the same as analog input resolution, so use ai_bits
                s->maxdata = (1 << board(dev)->ai_bits) - 1;
@@ -878,7 +878,7 @@ static int setup_subdevices(comedi_device *dev)
        {
                s = dev->subdevices + 3;
                s->type = COMEDI_SUBD_DO;
-               s->subdev_flags = SDF_WRITEABLE | SDF_READABLE;
+               s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
                s->n_chan = 4;
                s->maxdata = 1;
                s->range_table = &range_digital;
@@ -903,7 +903,7 @@ static int setup_subdevices(comedi_device *dev)
        if(board(dev)->layout == LAYOUT_60XX)
        {
                s->type = COMEDI_SUBD_DIO;
-               s->subdev_flags = SDF_WRITEABLE | SDF_READABLE;
+               s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
                s->n_chan = 8;
                s->maxdata = 1;
                s->range_table = &range_digital;
@@ -915,7 +915,7 @@ static int setup_subdevices(comedi_device *dev)
        // 8 channel 8800 caldac
        s = dev->subdevices + 6;
        s->type=COMEDI_SUBD_CALIB;
-       s->subdev_flags = SDF_READABLE | SDF_WRITEABLE | SDF_INTERNAL;
+       s->subdev_flags = SDF_READABLE | SDF_WRITABLE | SDF_INTERNAL;
        s->n_chan = 8;
        if(board(dev)->layout == LAYOUT_4020)
                s->maxdata = 0xfff;
@@ -929,7 +929,7 @@ static int setup_subdevices(comedi_device *dev)
        if(board(dev)->layout == LAYOUT_64XX)
        {
                s->type = COMEDI_SUBD_CALIB;
-               s->subdev_flags = SDF_READABLE | SDF_WRITEABLE | SDF_INTERNAL;
+               s->subdev_flags = SDF_READABLE | SDF_WRITABLE | SDF_INTERNAL;
                s->n_chan = 2;
                s->insn_read = ad8402_read_insn;
                s->insn_write = ad8402_write_insn;
index c38f691f5f95899bcc5c655f11f94a8d4f186c52..f2c8585030260fa48c1b207ef065e24179ed85ce 100644 (file)
@@ -384,7 +384,7 @@ found:
        s = dev->subdevices + 0;
        /* analog output subdevice */
        s->type = COMEDI_SUBD_AO;
-       s->subdev_flags = SDF_WRITEABLE;
+       s->subdev_flags = SDF_WRITABLE;
        s->n_chan = thisboard->ao_chans;
        s->maxdata = (1 << thisboard->ao_bits) - 1;
        s->range_table = thisboard->ranges;
index db31d4642d53a14e2ed8b2cbece5caa4a95112a5..6497e7cb68cf56be9e498d32249f763eef521230 100644 (file)
@@ -320,7 +320,7 @@ static int parport_attach(comedi_device *dev,comedi_devconfig *it)
 
        s=dev->subdevices+0;
        s->type=COMEDI_SUBD_DO;
-       s->subdev_flags=SDF_WRITEABLE;
+       s->subdev_flags=SDF_WRITABLE;
        s->n_chan=8;
        s->maxdata=1;
        s->range_table=&range_digital;
@@ -336,7 +336,7 @@ static int parport_attach(comedi_device *dev,comedi_devconfig *it)
 
        s=dev->subdevices+2;
        s->type=COMEDI_SUBD_DO;
-       s->subdev_flags=SDF_WRITEABLE;
+       s->subdev_flags=SDF_WRITABLE;
        s->n_chan=4;
        s->maxdata=1;
        s->range_table=&range_digital;
index 8d40fc35656c5640880e231412f15e723a4f4744..b6afd0c30b7c5d773a760f395e8e8ce5463b83ca 100644 (file)
@@ -139,7 +139,7 @@ static int contec_attach(comedi_device *dev,comedi_devconfig *it)
 
                        s=dev->subdevices+1;
                        s->type = COMEDI_SUBD_DO;
-                       s->subdev_flags = SDF_WRITEABLE;
+                       s->subdev_flags = SDF_WRITABLE;
                        s->n_chan = 16;
                        s->maxdata = 1;
                        s->range_table = &range_digital;
index fc675ee4551bb33f969cedf72dae27fa93a3406a..76e2087dd3af04313b33ff3f2cae1d3d563e1c6f 100644 (file)
@@ -808,7 +808,7 @@ static int daqboard2000_attach(comedi_device *dev, comedi_devconfig *it)
   s = dev->subdevices + 1;
   /* ao subdevice */
   s->type = COMEDI_SUBD_AO;
-  s->subdev_flags = SDF_WRITEABLE|SDF_RT;
+  s->subdev_flags = SDF_WRITABLE|SDF_RT;
   s->n_chan = 2;
   s->maxdata = 0xffff;
   s->insn_read = daqboard2000_ao_insn_read;
index 5bbaaf68a1cee80888bd9a00706994f0e27e0f37..10ab31d41d0f580b47ea7c77e0e97e4bcc583c12 100644 (file)
@@ -850,7 +850,7 @@ static int das08_attach(comedi_device *dev,comedi_devconfig *it)
        if(thisboard->ao){
                s->type=COMEDI_SUBD_AO;
 // XXX lacks read-back insn
-               s->subdev_flags = SDF_WRITEABLE;
+               s->subdev_flags = SDF_WRITABLE;
                s->n_chan = 2;
                s->maxdata = (1<<thisboard->ao_nbits)-1;
                s->range_table = &range_bipolar5;
@@ -876,7 +876,7 @@ static int das08_attach(comedi_device *dev,comedi_devconfig *it)
        /* do */
        if(thisboard->do_){
                s->type=COMEDI_SUBD_DO;
-               s->subdev_flags = SDF_WRITEABLE | SDF_READABLE;
+               s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
                s->n_chan = thisboard->do_nchan;
                s->maxdata = 1;
                s->range_table = &range_digital;
index ea9a31eaef171f0bfe8195080c397dca4e65c40c..986a9878403d0b170058c6ce5f8fc23486422eb9 100644 (file)
@@ -1532,7 +1532,7 @@ static int das16_attach(comedi_device *dev, comedi_devconfig *it)
        /* ao */
        if(thisboard->ao){
                s->type = COMEDI_SUBD_AO;
-               s->subdev_flags = SDF_WRITEABLE;
+               s->subdev_flags = SDF_WRITABLE;
                s->n_chan = 2;
                s->maxdata = (1 << thisboard->ao_nbits) - 1;
                if(devpriv->user_ao_range_table)
@@ -1564,7 +1564,7 @@ static int das16_attach(comedi_device *dev, comedi_devconfig *it)
        /* do */
        if(thisboard->do_){
                s->type = COMEDI_SUBD_DO;
-               s->subdev_flags = SDF_WRITEABLE | SDF_READABLE;
+               s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
                s->n_chan = 4;
                s->maxdata = 1;
                s->range_table = &range_digital;
index d2e21e6db14386aeb0385df3b2dec8b20ae791ba..0e9a4aaf73fc0971e969be262f8dab3625c3ef9c 100644 (file)
@@ -707,7 +707,7 @@ static int das16m1_attach(comedi_device *dev, comedi_devconfig *it)
        s = dev->subdevices + 2;
        /* do */
        s->type = COMEDI_SUBD_DO;
-       s->subdev_flags = SDF_WRITEABLE | SDF_READABLE;
+       s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
        s->n_chan = 4;
        s->maxdata = 1;
        s->range_table = &range_digital;
index 70791551f32abd0b27c645622a7e6dd2fdf5065a..49126da67fd67d7fd43ee705fd89b130804dbd11 100644 (file)
@@ -722,7 +722,7 @@ static int das1800_attach(comedi_device *dev, comedi_devconfig *it)
        if(thisboard->ao_ability == 1)
        {
                s->type = COMEDI_SUBD_AO;
-               s->subdev_flags = SDF_WRITEABLE;
+               s->subdev_flags = SDF_WRITABLE;
                s->n_chan = thisboard->ao_n_chan;
                s->maxdata = (1 << thisboard->resolution) - 1;
                s->range_table = &range_ao_1;
@@ -745,7 +745,7 @@ static int das1800_attach(comedi_device *dev, comedi_devconfig *it)
        /* do */
        s = dev->subdevices + 3;
        s->type = COMEDI_SUBD_DO;
-       s->subdev_flags = SDF_WRITEABLE | SDF_READABLE;
+       s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
        s->n_chan = thisboard->do_n_chan;
        s->maxdata = 1;
        s->range_table = &range_digital;
index bff206ebf8b8a4c8a1c76299e67c3a0cffda2a35..bc0a317741118eb1872fd8ec2494ba53a3631010 100644 (file)
@@ -547,7 +547,7 @@ static int das800_attach(comedi_device *dev, comedi_devconfig *it)
        /* do */
        s = dev->subdevices + 2;
        s->type=COMEDI_SUBD_DO;
-       s->subdev_flags = SDF_WRITEABLE | SDF_READABLE;
+       s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
        s->n_chan = 4;
        s->maxdata = 1;
        s->range_table = &range_digital;
index b6bfbf57cdcde57510ac4a27f3b76ce0b1d6d5fc..e2ca8013178f3d7ef806ce4e462e11d27329711e 100644 (file)
@@ -549,7 +549,7 @@ havetype:
        s++;
        /* ao subdevice */
        s->type=COMEDI_SUBD_AO;
-       s->subdev_flags=SDF_WRITEABLE;
+       s->subdev_flags=SDF_WRITABLE;
        s->n_chan=2;
        s->maxdata=(1<<boardtype.dabits)-1;
        s->range_table_list=devpriv->dac_range_types;
@@ -561,7 +561,7 @@ havetype:
        s++;
        /* 1st digital subdevice */
        s->type=COMEDI_SUBD_DIO;
-       s->subdev_flags=SDF_READABLE|SDF_WRITEABLE;
+       s->subdev_flags=SDF_READABLE|SDF_WRITABLE;
        s->n_chan=8;
        s->maxdata=1;
        s->range_table=&range_digital;
@@ -571,7 +571,7 @@ havetype:
        s++;
        /* 2nd digital subdevice */
        s->type=COMEDI_SUBD_DIO;
-       s->subdev_flags=SDF_READABLE|SDF_WRITEABLE;
+       s->subdev_flags=SDF_READABLE|SDF_WRITABLE;
        s->n_chan=8;
        s->maxdata=1;
        s->range_table=&range_digital;
index 3bcc7ee9bac6f33d923f02be7257554dc0311cd4..656eadd5872af541e5ff174a35479b914f134a31 100644 (file)
@@ -416,7 +416,7 @@ static int dt2811_attach(comedi_device * dev, comedi_devconfig * it)
        s = dev->subdevices + 1;
        /* ao subdevice */
        s->type = COMEDI_SUBD_AO;
-       s->subdev_flags = SDF_WRITEABLE;
+       s->subdev_flags = SDF_WRITABLE;
        s->n_chan = 2;
        s->insn_write = dt2811_ao_insn;
        s->insn_read = dt2811_ao_insn_read;
@@ -437,7 +437,7 @@ static int dt2811_attach(comedi_device * dev, comedi_devconfig * it)
        s = dev->subdevices + 3;
        /* do subdevice */
        s->type = COMEDI_SUBD_DO;
-       s->subdev_flags = SDF_WRITEABLE;
+       s->subdev_flags = SDF_WRITABLE;
        s->n_chan = 8;
        s->insn_bits = dt2811_do_insn_bits;
        s->maxdata = 1;
index ab242ccd4172735cb02c7b18464621edb9ec023f..2beb1576e396607e1ccaf2716b40e31634bfcdf9 100644 (file)
@@ -209,7 +209,7 @@ static int dt2815_attach(comedi_device * dev, comedi_devconfig * it)
   s=dev->subdevices;
   /* ao subdevice */
   s->type=COMEDI_SUBD_AO;
-  s->subdev_flags=SDF_WRITEABLE;
+  s->subdev_flags=SDF_WRITABLE;
   s->maxdata=0xfff;
   s->n_chan=8;
   s->insn_write = dt2815_ao_insn;
index 730eb0dbb4445957cf51deb3bc1aaefa06a64201..9ea3cd7c6bb7de33370e725dc8045519f02f5311 100644 (file)
@@ -157,7 +157,7 @@ static int dt2817_attach(comedi_device *dev,comedi_devconfig *it)
 
        s->n_chan=32;
        s->type=COMEDI_SUBD_DIO;
-       s->subdev_flags=SDF_READABLE|SDF_WRITEABLE;
+       s->subdev_flags=SDF_READABLE|SDF_WRITABLE;
        s->range_table=&range_digital;
        s->maxdata=1;
        s->insn_bits=dt2817_dio_insn_bits;
index 156bacc134f3b58cfed4a0e42ce21a91cd446734..a651902093d3b3dc657f564388117dcb298c304d 100644 (file)
@@ -1296,7 +1296,7 @@ static int dt282x_attach(comedi_device * dev, comedi_devconfig * it)
                /* ao subsystem */
                s->type=COMEDI_SUBD_AO;
                dev->write_subdev=s;
-               s->subdev_flags=SDF_WRITEABLE;
+               s->subdev_flags=SDF_WRITABLE;
                s->insn_read=dt282x_ao_insn_read;
                s->insn_write=dt282x_ao_insn_write;
                s->do_cmdtest=dt282x_ao_cmdtest;
@@ -1318,7 +1318,7 @@ static int dt282x_attach(comedi_device * dev, comedi_devconfig * it)
        s++;
        /* dio subsystem */
        s->type=COMEDI_SUBD_DIO;
-       s->subdev_flags=SDF_READABLE|SDF_WRITEABLE;
+       s->subdev_flags=SDF_READABLE|SDF_WRITABLE;
        s->n_chan=16;
        s->insn_bits = dt282x_dio_insn_bits;
        s->insn_config = dt282x_dio_insn_config;
index a066e01dc72c398e386fc98387e470af2f42f204..7598e29244a79b050a0248998ff999b69e1afe89 100644 (file)
@@ -804,7 +804,7 @@ static int dt3000_attach(comedi_device *dev,comedi_devconfig *it)
        s++;
        /* ao subsystem */
        s->type=COMEDI_SUBD_AO;
-       s->subdev_flags=SDF_WRITEABLE;
+       s->subdev_flags=SDF_WRITABLE;
        s->n_chan=2;
        s->insn_read=dt3k_ao_insn_read;
        s->insn_write=dt3k_ao_insn;
@@ -815,7 +815,7 @@ static int dt3000_attach(comedi_device *dev,comedi_devconfig *it)
        s++;
        /* dio subsystem */
        s->type=COMEDI_SUBD_DIO;
-       s->subdev_flags=SDF_READABLE|SDF_WRITEABLE;
+       s->subdev_flags=SDF_READABLE|SDF_WRITABLE;
        s->n_chan=8;
        s->insn_config=dt3k_dio_insn_config;
        s->insn_bits=dt3k_dio_insn_bits;
index 9e02001a5a6817495112d15f770682ee981f35c3..15e4526fd7617eea53c7fe5395f42dd6edf9c71d 100644 (file)
@@ -183,7 +183,7 @@ static int fl512_attach(comedi_device *dev,comedi_devconfig *it)
   /* Analog output */
   s                = dev->subdevices+1;
   s->type          = COMEDI_SUBD_AO;         /* define subdevice as Analog OUT   */
-  s->subdev_flags  = SDF_WRITEABLE;          /* you can write it from userspace  */
+  s->subdev_flags  = SDF_WRITABLE;          /* you can write it from userspace  */
   s->n_chan        = 2;                      /* Number of Analog output channels */
   s->maxdata       = 0x0fff;                 /* accept only 12 bits of data      */
   s->range_table   = &range_fl512;           /* device use one of the ranges     */
index af5c55ca002d35edc460c4ceb6004480b27f4188..2a9f67c3dfc422d66b93b0c8e6a540b3f404b3cb 100644 (file)
@@ -967,7 +967,7 @@ static int icp_multi_attach(comedi_device *dev,comedi_devconfig *it)
        if (this_board->n_aochan) {
                s = dev->subdevices + subdev;
                s->type = COMEDI_SUBD_AO;
-               s->subdev_flags = SDF_WRITEABLE|SDF_GROUND|SDF_COMMON;
+               s->subdev_flags = SDF_WRITABLE|SDF_GROUND|SDF_COMMON;
                s->n_chan = this_board->n_aochan;
                s->maxdata = this_board->ao_maxdata;
                s->len_chanlist = this_board->n_aochan;
@@ -993,7 +993,7 @@ static int icp_multi_attach(comedi_device *dev,comedi_devconfig *it)
        if (this_board->n_dochan) {
                s = dev->subdevices + subdev;
                s->type = COMEDI_SUBD_DO;
-               s->subdev_flags = SDF_WRITEABLE | SDF_READABLE;
+               s->subdev_flags = SDF_WRITABLE | SDF_READABLE;
                s->n_chan = this_board->n_dochan;
                s->maxdata = 1;
                s->len_chanlist = this_board->n_dochan;
@@ -1007,7 +1007,7 @@ static int icp_multi_attach(comedi_device *dev,comedi_devconfig *it)
        if (this_board->n_ctrs) {
                s = dev->subdevices + subdev;
                s->type = COMEDI_SUBD_COUNTER;
-               s->subdev_flags = SDF_WRITEABLE|SDF_GROUND|SDF_COMMON;
+               s->subdev_flags = SDF_WRITABLE|SDF_GROUND|SDF_COMMON;
                s->n_chan = this_board->n_ctrs;
                s->maxdata = 0xffff;
                s->len_chanlist = this_board->n_ctrs;
index e98972aa90dba1f31c125e3476a662d70d177e9c..4bcbfc36198b2e0e213114c38fc62bc6cc00b308 100644 (file)
@@ -301,7 +301,7 @@ static int pci20006_init(comedi_device * dev,comedi_subdevice *s,
 
        /* ao subdevice */
        s->type = COMEDI_SUBD_AO;
-       s->subdev_flags = SDF_WRITEABLE|SDF_RT;
+       s->subdev_flags = SDF_WRITABLE|SDF_RT;
        s->n_chan = 2;
        s->len_chanlist = 2;
        s->insn_read = pci20006_insn_read;
@@ -460,7 +460,7 @@ static int pci20xxx_dio_init(comedi_device * dev,comedi_subdevice *s)
 {
 
        s->type = COMEDI_SUBD_DIO;
-       s->subdev_flags = SDF_READABLE | SDF_WRITEABLE;
+       s->subdev_flags = SDF_READABLE | SDF_WRITABLE;
        s->n_chan = 32;
        s->insn_bits = pci20xxx_dio_insn_bits;
        s->insn_config = pci20xxx_dio_insn_config;
index ae19f55a553c38bede7c42c2f6c00dbe7f51b7d8..6752504df674b024a6a47501b8b5d3e603fec49d 100644 (file)
@@ -91,7 +91,7 @@ static int mpc8260cpm_attach(comedi_device *dev,comedi_devconfig *it)
        for(i=0;i<4;i++){
                s=dev->subdevices+i;
                s->type=COMEDI_SUBD_DIO;
-               s->subdev_flags=SDF_READABLE|SDF_WRITEABLE;
+               s->subdev_flags=SDF_READABLE|SDF_WRITABLE;
                s->n_chan=32;
                s->maxdata=1;
                s->range_table=&range_digital;
index 906fe5ce63b4e5ac37d0f2ed5de1505ac93590a8..bd0011b63841c39a2d48d08b25cf22aa6234879f 100644 (file)
@@ -279,7 +279,7 @@ static int multiq3_attach(comedi_device * dev, comedi_devconfig * it)
       s = dev->subdevices + 1;
       /* ao subdevice */
       s->type = COMEDI_SUBD_AO;
-      s->subdev_flags = SDF_WRITEABLE;
+      s->subdev_flags = SDF_WRITABLE;
       s->n_chan = 8;
       s->insn_read = multiq3_ao_insn_read;
       s->insn_write = multiq3_ao_insn_write;
@@ -298,7 +298,7 @@ static int multiq3_attach(comedi_device * dev, comedi_devconfig * it)
       s = dev->subdevices + 3;
       /* do subdevice */
       s->type = COMEDI_SUBD_DO;
-      s->subdev_flags = SDF_WRITEABLE;
+      s->subdev_flags = SDF_WRITABLE;
       s->n_chan = 16;
       s->insn_bits = multiq3_do_insn_bits;
       s->maxdata = 1;
index b41dd7a04656fd23fe9e3f78d487c7d60f3a723f..fcbd178ed2bd56614f70af80e1a65b2fab3ab9be 100644 (file)
@@ -163,7 +163,7 @@ static int ni_670x_attach(comedi_device *dev,comedi_devconfig *it)
        s=dev->subdevices+0;
        /* analog output subdevice */
        s->type                 =       COMEDI_SUBD_AO;
-       s->subdev_flags         =       SDF_WRITEABLE;
+       s->subdev_flags         =       SDF_WRITABLE;
        s->n_chan               =       thisboard->ao_chans;
        s->maxdata              =       0xffff;
        s->range_table          =       &range_bipolar10; 
@@ -173,7 +173,7 @@ static int ni_670x_attach(comedi_device *dev,comedi_devconfig *it)
        s=dev->subdevices+1;
        /* digital i/o subdevice */
        s->type                 =       COMEDI_SUBD_DIO;
-       s->subdev_flags =       SDF_READABLE|SDF_WRITEABLE;
+       s->subdev_flags =       SDF_READABLE|SDF_WRITABLE;
        s->n_chan               =       8;
        s->maxdata              =       1;
        s->range_table  =       &range_digital;
index 695ca63864ea3ad57666d4fa26ace705097c89d0..b8ab045c8c063f1ce7e4cf294865dc826eabd55f 100644 (file)
@@ -240,7 +240,7 @@ static int atao_attach(comedi_device *dev,comedi_devconfig *it)
        s=dev->subdevices+0;
        /* analog output subdevice */
        s->type=COMEDI_SUBD_AO;
-       s->subdev_flags=SDF_WRITEABLE;
+       s->subdev_flags=SDF_WRITABLE;
        s->n_chan=thisboard->n_ao_chans;
        s->maxdata=(1<<12)-1;
        s->range_table=&range_bipolar10;
@@ -250,7 +250,7 @@ static int atao_attach(comedi_device *dev,comedi_devconfig *it)
        s=dev->subdevices+1;
        /* digital i/o subdevice */
        s->type=COMEDI_SUBD_DIO;
-       s->subdev_flags=SDF_READABLE|SDF_WRITEABLE;
+       s->subdev_flags=SDF_READABLE|SDF_WRITABLE;
        s->n_chan=8;
        s->maxdata=1;
        s->range_table=&range_digital;
@@ -260,7 +260,7 @@ static int atao_attach(comedi_device *dev,comedi_devconfig *it)
        s=dev->subdevices+2;
        /* caldac subdevice */
        s->type=COMEDI_SUBD_CALIB;
-       s->subdev_flags = SDF_WRITEABLE|SDF_INTERNAL;
+       s->subdev_flags = SDF_WRITABLE|SDF_INTERNAL;
        s->n_chan = 21;
        s->maxdata = 0xff;
        s->insn_read = atao_calib_insn_read;
index b2a95ba337596e4efc4d9367cd0193cd232a16da..478d15ab4653f88411ad18f3d63b0ee9dcf4739c 100644 (file)
@@ -802,7 +802,7 @@ static int atmio16d_attach(comedi_device * dev, comedi_devconfig * it)
        /* ao subdevice */
        s++;
        s->type=COMEDI_SUBD_AO;
-       s->subdev_flags=SDF_WRITEABLE;
+       s->subdev_flags=SDF_WRITABLE;
        s->n_chan=2;
        s->insn_read=atmio16d_ao_insn_read;
        s->insn_write=atmio16d_ao_insn_write;
@@ -829,7 +829,7 @@ static int atmio16d_attach(comedi_device * dev, comedi_devconfig * it)
        /* Digital I/O */
        s++;
        s->type=COMEDI_SUBD_DIO;
-       s->subdev_flags=SDF_WRITEABLE|SDF_READABLE;
+       s->subdev_flags=SDF_WRITABLE|SDF_READABLE;
        s->n_chan=8;
        s->insn_bits = atmio16d_dio_insn_bits;
        s->insn_config = atmio16d_dio_insn_config;
index 8ae35a2ccfb4825928665b790a4bbeb838020d12..b2e7c52f22f5e71e895d40be94cd74f1fb74fe1d 100644 (file)
@@ -683,7 +683,7 @@ static int labpc_attach(comedi_device *dev, comedi_devconfig *it)
 /* Could provide command support, except it only has a one sample
  * hardware buffer for analog output and no underrun flag. */
                s->type=COMEDI_SUBD_AO;
-               s->subdev_flags = SDF_READABLE | SDF_WRITEABLE | SDF_GROUND;
+               s->subdev_flags = SDF_READABLE | SDF_WRITABLE | SDF_GROUND;
                s->n_chan = NUM_AO_CHAN;
                s->maxdata = (1 << 12) - 1;     // 12 bit resolution
                s->range_table = &range_labpc_ao;
@@ -716,7 +716,7 @@ static int labpc_attach(comedi_device *dev, comedi_devconfig *it)
        if(thisboard->register_layout == labpc_1200_layout)
        {
                s->type=COMEDI_SUBD_CALIB;
-               s->subdev_flags = SDF_READABLE | SDF_WRITEABLE | SDF_INTERNAL;
+               s->subdev_flags = SDF_READABLE | SDF_WRITABLE | SDF_INTERNAL;
                if(thisboard->has_ao)
                        s->n_chan = 8;
                else
@@ -732,7 +732,7 @@ static int labpc_attach(comedi_device *dev, comedi_devconfig *it)
        if(thisboard->register_layout == labpc_1200_layout)
        {
                s->type = COMEDI_SUBD_MEMORY;
-               s->subdev_flags = SDF_READABLE | SDF_WRITEABLE | SDF_INTERNAL;
+               s->subdev_flags = SDF_READABLE | SDF_WRITABLE | SDF_INTERNAL;
                s->n_chan = EEPROM_SIZE;
                s->maxdata = 0xff;
                s->insn_read = labpc_eeprom_read_insn;
index 64bd93e8a9315b50b016a3e5bb32d8285ba2b2f5..36679af25f1bea3c0f4910ee9dbf18d16c9a8869 100644 (file)
@@ -965,7 +965,7 @@ static int nidio_attach(comedi_device *dev,comedi_devconfig *it)
 
                dev->read_subdev = s;
                s->type=COMEDI_SUBD_DIO;
-               s->subdev_flags=SDF_READABLE|SDF_WRITEABLE|SDF_RT;
+               s->subdev_flags=SDF_READABLE|SDF_WRITABLE|SDF_RT;
                s->n_chan=32;
                s->range_table=&range_digital;
                s->maxdata=1;
index 1b444b94d0503edc51ef106c6b50cacfaeffeec6..818fd63bd2842bf51fb83c944eb3dd3d2d58174e 100644 (file)
@@ -557,7 +557,7 @@ static int pcl711_attach(comedi_device * dev, comedi_devconfig * it)
        s++;
        /* AO subdevice */
        s->type = COMEDI_SUBD_AO;
-       s->subdev_flags = SDF_WRITEABLE;
+       s->subdev_flags = SDF_WRITABLE;
        s->n_chan = this_board->n_aochan;
        s->maxdata = 0xfff;
        s->len_chanlist = 1;
@@ -578,7 +578,7 @@ static int pcl711_attach(comedi_device * dev, comedi_devconfig * it)
        s++;
        /* 16-bit digital out */
        s->type = COMEDI_SUBD_DO;
-       s->subdev_flags = SDF_WRITEABLE;
+       s->subdev_flags = SDF_WRITABLE;
        s->n_chan = 16;
        s->maxdata = 1;
        s->len_chanlist = 16;
index f9c7e5eae2daf6407624ef9fb224578f299bb035..416e7c784b08992b84fe57c7d92c6b43bf42f028 100644 (file)
@@ -91,7 +91,7 @@ static int pcl725_attach(comedi_device *dev,comedi_devconfig *it)
        s=dev->subdevices+0;
        /* do */
        s->type=COMEDI_SUBD_DO;
-       s->subdev_flags=SDF_WRITEABLE;
+       s->subdev_flags=SDF_WRITABLE;
        s->maxdata=1;
        s->n_chan=8;
        s->insn_bits = pcl725_do_insn;
index 145c7ec2991128d88c374a1d94b836440d82f767..fa610caa51a7607c23c4508e4d8dcca80e977db6 100644 (file)
@@ -306,7 +306,7 @@ static int pcl726_attach(comedi_device *dev,comedi_devconfig *it)
        s=dev->subdevices+0;
        /* ao */
        s->type=COMEDI_SUBD_AO;
-       s->subdev_flags=SDF_WRITEABLE|SDF_GROUND;
+       s->subdev_flags=SDF_WRITABLE|SDF_GROUND;
        s->n_chan=this_board->n_aochan;
        s->maxdata=0xfff;
        s->len_chanlist=1;
@@ -347,7 +347,7 @@ static int pcl726_attach(comedi_device *dev,comedi_devconfig *it)
                s->type = COMEDI_SUBD_UNUSED;
        }else{
                s->type=COMEDI_SUBD_DO;
-               s->subdev_flags=SDF_WRITEABLE|SDF_GROUND;
+               s->subdev_flags=SDF_WRITABLE|SDF_GROUND;
                s->n_chan=16;
                s->maxdata=1;
                s->len_chanlist=1;
index 233e342cd0439ca5eaa768d4f4f68bdd4da048cf..b84bff15fcffb24e2fa733c8602e81e4367bdc69 100644 (file)
@@ -1411,7 +1411,7 @@ static int pcl812_attach(comedi_device * dev, comedi_devconfig * it)
        if (this_board->n_aochan>0) {
                s = dev->subdevices + subdev;
                s->type = COMEDI_SUBD_AO;
-               s->subdev_flags = SDF_WRITEABLE|SDF_GROUND;
+               s->subdev_flags = SDF_WRITABLE|SDF_GROUND;
                s->n_chan = this_board->n_aochan;
                s->maxdata = 0xfff;
                s->len_chanlist = 1;
@@ -1453,7 +1453,7 @@ static int pcl812_attach(comedi_device * dev, comedi_devconfig * it)
        if (this_board->n_dochan>0) {
                s = dev->subdevices + subdev;
                s->type = COMEDI_SUBD_DO;
-               s->subdev_flags = SDF_WRITEABLE;
+               s->subdev_flags = SDF_WRITABLE;
                s->n_chan = this_board->n_dochan;
                s->maxdata = 1;
                s->len_chanlist = this_board->n_dochan;
index b4a826dc677026e725b7cf28d17b95f90d623dc7..fda505b154d44249669692d7c2d28057647d68d3 100644 (file)
@@ -1205,7 +1205,7 @@ no_dma:
 
 #if 0
        case COMEDI_SUBD_AO:
-         s->subdev_flags = SDF_WRITEABLE | SDF_GROUND | SDF_RT;
+         s->subdev_flags = SDF_WRITABLE | SDF_GROUND | SDF_RT;
          s->n_chan = this_board->n_aochan;
          s->maxdata = this_board->ao_maxdata;
          s->len_chanlist = this_board->ao_chanlist;
@@ -1221,7 +1221,7 @@ no_dma:
          break;
 
        case COMEDI_SUBD_DO:
-         s->subdev_flags = SDF_WRITEABLE | SDF_RT;
+         s->subdev_flags = SDF_WRITABLE | SDF_RT;
          s->n_chan = this_board->n_dochan;
          s->maxdata = 1;
          s->len_chanlist = this_board->n_dochan;
index 64376deb637f62115f5143f71b7cc8eb165c0232..e5d4bc7f952ced35f215c9e42624dbc900ab0f75 100644 (file)
@@ -1597,7 +1597,7 @@ no_dma:
        }else{
                dev->write_subdev = s;
                s->type = COMEDI_SUBD_AO;
-               s->subdev_flags = SDF_WRITEABLE|SDF_GROUND|SDF_RT;
+               s->subdev_flags = SDF_WRITABLE|SDF_GROUND|SDF_RT;
                s->n_chan = this_board->n_aochan;
                s->maxdata = this_board->ao_maxdata;
                s->len_chanlist = this_board->ao_chanlist;
@@ -1643,7 +1643,7 @@ no_dma:
                s->type = COMEDI_SUBD_UNUSED;
        }else{
                s->type = COMEDI_SUBD_DO;
-               s->subdev_flags = SDF_WRITEABLE|SDF_RT;
+               s->subdev_flags = SDF_WRITABLE|SDF_RT;
                s->n_chan = this_board->n_dochan;
                s->maxdata = 1;
                s->len_chanlist = this_board->n_dochan;
index f7fb1d5d706e624cb3720503c41f7d9ff5802b3f..6ae0f8b6cddb212502e72835077d33e68ab3b55c 100644 (file)
@@ -95,7 +95,7 @@ static int pcm3730_attach(comedi_device *dev,comedi_devconfig *it)
 
        s=dev->subdevices+0;
        s->type=COMEDI_SUBD_DO;
-       s->subdev_flags=SDF_WRITEABLE;
+       s->subdev_flags=SDF_WRITABLE;
        s->maxdata=1;
        s->n_chan=8;
        s->insn_bits = pcm3730_do_insn_bits;
@@ -104,7 +104,7 @@ static int pcm3730_attach(comedi_device *dev,comedi_devconfig *it)
 
        s=dev->subdevices+1;
        s->type=COMEDI_SUBD_DO;
-       s->subdev_flags=SDF_WRITEABLE;
+       s->subdev_flags=SDF_WRITABLE;
        s->maxdata=1;
        s->n_chan=8;
        s->insn_bits = pcm3730_do_insn_bits;
@@ -113,7 +113,7 @@ static int pcm3730_attach(comedi_device *dev,comedi_devconfig *it)
 
        s=dev->subdevices+2;
        s->type=COMEDI_SUBD_DO;
-       s->subdev_flags=SDF_WRITEABLE;
+       s->subdev_flags=SDF_WRITABLE;
        s->maxdata=1;
        s->n_chan=8;
        s->insn_bits = pcm3730_do_insn_bits;
index c2c32fa7340837e2a0803e3150a8a9f083d9ff57..f5d572e67551f7bba4ef427e8792424b03352709 100644 (file)
@@ -163,7 +163,7 @@ static int poc_attach(comedi_device *dev, comedi_devconfig *it)
        s->insn_read = this_board->rinsn;
        s->insn_bits = this_board->insnbits;
        if(s->type==COMEDI_SUBD_AO || s->type==COMEDI_SUBD_DO){
-               s->subdev_flags = SDF_WRITEABLE;
+               s->subdev_flags = SDF_WRITABLE;
        }
 
        return 0;
index 9c959842498e5015e39a3156cfd787c801969304..5720a150c832d2daa4180fedbca1004d0dd06f05 100644 (file)
@@ -702,7 +702,7 @@ static int rtd_attach (
     s=dev->subdevices+1;
     /* analog output subdevice */
     s->type=COMEDI_SUBD_AO;
-    s->subdev_flags=SDF_WRITEABLE;
+    s->subdev_flags=SDF_WRITABLE;
     s->n_chan = 2;
     s->maxdata =(1<<thisboard->aiBits)-1;
     s->range_table = &rtd_ao_range;
@@ -712,7 +712,7 @@ static int rtd_attach (
     s=dev->subdevices+2;
     /* digital i/o subdevice */
     s->type=COMEDI_SUBD_DIO;
-    s->subdev_flags=SDF_READABLE|SDF_WRITEABLE;
+    s->subdev_flags=SDF_READABLE|SDF_WRITABLE;
     /* we only support port 0 right now.  Ignoring port 1 and user IO */
     s->n_chan=8;
     s->maxdata=1;
@@ -723,7 +723,7 @@ static int rtd_attach (
     /* timer/counter subdevices (not currently supported) */
     s=dev->subdevices+3;
     s->type = COMEDI_SUBD_COUNTER;
-    s->subdev_flags=SDF_READABLE|SDF_WRITEABLE;
+    s->subdev_flags=SDF_READABLE|SDF_WRITABLE;
     s->n_chan=3;
     s->maxdata=0xffff;
 
index d4dec273fb88bf16dffa836576dfe2c8dd2ab25e..c5d162073297486af03837b796ec6375e3e79a9f 100644 (file)
@@ -375,7 +375,7 @@ static int rti800_attach(comedi_device * dev, comedi_devconfig * it)
        if (this_board->has_ao){
                /* ao subdevice (only on rti815) */
                s->type=COMEDI_SUBD_AO;
-               s->subdev_flags=SDF_WRITEABLE;
+               s->subdev_flags=SDF_WRITABLE;
                s->n_chan=2;
                s->insn_read=rti800_ao_insn_read;
                s->insn_write=rti800_ao_insn_write;
@@ -413,7 +413,7 @@ static int rti800_attach(comedi_device * dev, comedi_devconfig * it)
        s++;
        /* do */
        s->type=COMEDI_SUBD_DO;
-       s->subdev_flags=SDF_WRITEABLE;
+       s->subdev_flags=SDF_WRITABLE;
        s->n_chan=8;
        s->insn_bits=rti800_do_insn_bits;
        s->maxdata=1;
index 08724463becd250c53c4874a0d7231bbd60dc096..684b2e62a9f0d0b8241b8ff61b95f15e6b8b7ea9 100644 (file)
@@ -132,7 +132,7 @@ static int rti802_attach(comedi_device * dev, comedi_devconfig * it)
        s=dev->subdevices;
        /* ao subdevice */
        s->type=COMEDI_SUBD_AO;
-       s->subdev_flags=SDF_WRITEABLE;
+       s->subdev_flags=SDF_WRITABLE;
        s->maxdata=0xfff;
        s->n_chan=8;
        s->insn_read = rti802_ao_insn_read;
index a4325644c6ba0b4cf97b9170a4e121d9d18422ad..8f6ebc7cef8985de5a204bb35496ab5303ce79ae 100644 (file)
@@ -262,7 +262,7 @@ static int skel_attach(comedi_device *dev,comedi_devconfig *it)
        s=dev->subdevices+1;
        /* analog output subdevice */
        s->type=COMEDI_SUBD_AO;
-       s->subdev_flags=SDF_WRITEABLE;
+       s->subdev_flags=SDF_WRITABLE;
        s->n_chan=1;
        s->maxdata=0xffff;
        s->range_table=&range_bipolar5;
@@ -273,7 +273,7 @@ static int skel_attach(comedi_device *dev,comedi_devconfig *it)
        /* digital i/o subdevice */
        if(thisboard->have_dio){
                s->type=COMEDI_SUBD_DIO;
-               s->subdev_flags=SDF_READABLE|SDF_WRITEABLE;
+               s->subdev_flags=SDF_READABLE|SDF_WRITABLE;
                s->n_chan=16;
                s->maxdata=1;
                s->range_table=&range_digital;
index b839533021a52caa4c35a16c3371352076d57a07..0b4ba796183dcfb7a5067f9645023fb4bda52f09 100644 (file)
@@ -166,7 +166,7 @@ static int dnp_attach(comedi_device *dev,comedi_devconfig *it)
   s=dev->subdevices+0;
   /* digital i/o subdevice                                                   */
   s->type         =  COMEDI_SUBD_DIO;
-  s->subdev_flags =  SDF_READABLE|SDF_WRITEABLE;
+  s->subdev_flags =  SDF_READABLE|SDF_WRITABLE;
   s->n_chan       =  20;
   s->maxdata      =  1;
   s->range_table  =& range_digital;