From 479e1f12c2009343d0446c28e402a1b0cfb633bc Mon Sep 17 00:00:00 2001 From: David Schleef Date: Thu, 16 May 2002 22:13:38 +0000 Subject: [PATCH] Globally fix spelling of SDF_WRITABLE --- comedi/drivers.c | 2 +- comedi/drivers/8255.c | 2 +- comedi/drivers/adl_pci9111.c | 4 ++-- comedi/drivers/adl_pci9118.c | 4 ++-- comedi/drivers/adv_pci1710.c | 4 ++-- comedi/drivers/amplc_pci230.c | 2 +- comedi/drivers/cb_pcidas.c | 2 +- comedi/drivers/cb_pcidas64.c | 10 +++++----- comedi/drivers/cb_pcidda.c | 2 +- comedi/drivers/comedi_parport.c | 4 ++-- comedi/drivers/contec_pci_dio.c | 2 +- comedi/drivers/daqboard2000.c | 2 +- comedi/drivers/das08.c | 4 ++-- comedi/drivers/das16.c | 4 ++-- comedi/drivers/das16m1.c | 2 +- comedi/drivers/das1800.c | 4 ++-- comedi/drivers/das800.c | 2 +- comedi/drivers/dt2801.c | 6 +++--- comedi/drivers/dt2811.c | 4 ++-- comedi/drivers/dt2815.c | 2 +- comedi/drivers/dt2817.c | 2 +- comedi/drivers/dt282x.c | 4 ++-- comedi/drivers/dt3000.c | 4 ++-- comedi/drivers/fl512.c | 2 +- comedi/drivers/icp_multi.c | 6 +++--- comedi/drivers/ii_pci20kc.c | 4 ++-- comedi/drivers/mpc8260cpm.c | 2 +- comedi/drivers/multiq3.c | 4 ++-- comedi/drivers/ni_670x.c | 4 ++-- comedi/drivers/ni_at_ao.c | 6 +++--- comedi/drivers/ni_atmio16d.c | 4 ++-- comedi/drivers/ni_labpc.c | 6 +++--- comedi/drivers/ni_pcidio.c | 2 +- comedi/drivers/pcl711.c | 4 ++-- comedi/drivers/pcl725.c | 2 +- comedi/drivers/pcl726.c | 4 ++-- comedi/drivers/pcl812.c | 4 ++-- comedi/drivers/pcl816.c | 4 ++-- comedi/drivers/pcl818.c | 4 ++-- comedi/drivers/pcm3730.c | 6 +++--- comedi/drivers/poc.c | 2 +- comedi/drivers/rtd520.c | 6 +++--- comedi/drivers/rti800.c | 4 ++-- comedi/drivers/rti802.c | 2 +- comedi/drivers/skel.c | 4 ++-- comedi/drivers/ssv_dnp.c | 2 +- 46 files changed, 83 insertions(+), 83 deletions(-) diff --git a/comedi/drivers.c b/comedi/drivers.c index 2f659b9e..0a752541 100644 --- a/comedi/drivers.c +++ b/comedi/drivers.c @@ -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<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; diff --git a/comedi/drivers/adl_pci9111.c b/comedi/drivers/adl_pci9111.c index d210e86e..21b16e6e 100644 --- a/comedi/drivers/adl_pci9111.c +++ b/comedi/drivers/adl_pci9111.c @@ -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; diff --git a/comedi/drivers/adl_pci9118.c b/comedi/drivers/adl_pci9118.c index b9ef3157..afe9438c 100644 --- a/comedi/drivers/adl_pci9118.c +++ b/comedi/drivers/adl_pci9118.c @@ -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; diff --git a/comedi/drivers/adv_pci1710.c b/comedi/drivers/adv_pci1710.c index 42117605..4172bf66 100644 --- a/comedi/drivers/adv_pci1710.c +++ b/comedi/drivers/adv_pci1710.c @@ -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; diff --git a/comedi/drivers/amplc_pci230.c b/comedi/drivers/amplc_pci230.c index 4f4b5c42..4b061893 100644 --- a/comedi/drivers/amplc_pci230.c +++ b/comedi/drivers/amplc_pci230.c @@ -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<ao_bits)-1; s->range_table=&pci230_ao_range; diff --git a/comedi/drivers/cb_pcidas.c b/comedi/drivers/cb_pcidas.c index 6ed0d80f..3c11294c 100644 --- a/comedi/drivers/cb_pcidas.c +++ b/comedi/drivers/cb_pcidas.c @@ -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; diff --git a/comedi/drivers/cb_pcidas64.c b/comedi/drivers/cb_pcidas64.c index 75d5c641..4d345f03 100644 --- a/comedi/drivers/cb_pcidas64.c +++ b/comedi/drivers/cb_pcidas64.c @@ -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; diff --git a/comedi/drivers/cb_pcidda.c b/comedi/drivers/cb_pcidda.c index c38f691f..f2c85850 100644 --- a/comedi/drivers/cb_pcidda.c +++ b/comedi/drivers/cb_pcidda.c @@ -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; diff --git a/comedi/drivers/comedi_parport.c b/comedi/drivers/comedi_parport.c index db31d464..6497e7cb 100644 --- a/comedi/drivers/comedi_parport.c +++ b/comedi/drivers/comedi_parport.c @@ -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; diff --git a/comedi/drivers/contec_pci_dio.c b/comedi/drivers/contec_pci_dio.c index 8d40fc35..b6afd0c3 100644 --- a/comedi/drivers/contec_pci_dio.c +++ b/comedi/drivers/contec_pci_dio.c @@ -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; diff --git a/comedi/drivers/daqboard2000.c b/comedi/drivers/daqboard2000.c index fc675ee4..76e2087d 100644 --- a/comedi/drivers/daqboard2000.c +++ b/comedi/drivers/daqboard2000.c @@ -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; diff --git a/comedi/drivers/das08.c b/comedi/drivers/das08.c index 5bbaaf68..10ab31d4 100644 --- a/comedi/drivers/das08.c +++ b/comedi/drivers/das08.c @@ -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<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; diff --git a/comedi/drivers/das16.c b/comedi/drivers/das16.c index ea9a31ea..986a9878 100644 --- a/comedi/drivers/das16.c +++ b/comedi/drivers/das16.c @@ -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; diff --git a/comedi/drivers/das16m1.c b/comedi/drivers/das16m1.c index d2e21e6d..0e9a4aaf 100644 --- a/comedi/drivers/das16m1.c +++ b/comedi/drivers/das16m1.c @@ -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; diff --git a/comedi/drivers/das1800.c b/comedi/drivers/das1800.c index 70791551..49126da6 100644 --- a/comedi/drivers/das1800.c +++ b/comedi/drivers/das1800.c @@ -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; diff --git a/comedi/drivers/das800.c b/comedi/drivers/das800.c index bff206eb..bc0a3177 100644 --- a/comedi/drivers/das800.c +++ b/comedi/drivers/das800.c @@ -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; diff --git a/comedi/drivers/dt2801.c b/comedi/drivers/dt2801.c index b6bfbf57..e2ca8013 100644 --- a/comedi/drivers/dt2801.c +++ b/comedi/drivers/dt2801.c @@ -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<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; diff --git a/comedi/drivers/dt2811.c b/comedi/drivers/dt2811.c index 3bcc7ee9..656eadd5 100644 --- a/comedi/drivers/dt2811.c +++ b/comedi/drivers/dt2811.c @@ -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; diff --git a/comedi/drivers/dt2815.c b/comedi/drivers/dt2815.c index ab242ccd..2beb1576 100644 --- a/comedi/drivers/dt2815.c +++ b/comedi/drivers/dt2815.c @@ -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; diff --git a/comedi/drivers/dt2817.c b/comedi/drivers/dt2817.c index 730eb0db..9ea3cd7c 100644 --- a/comedi/drivers/dt2817.c +++ b/comedi/drivers/dt2817.c @@ -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; diff --git a/comedi/drivers/dt282x.c b/comedi/drivers/dt282x.c index 156bacc1..a6519020 100644 --- a/comedi/drivers/dt282x.c +++ b/comedi/drivers/dt282x.c @@ -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; diff --git a/comedi/drivers/dt3000.c b/comedi/drivers/dt3000.c index a066e01d..7598e292 100644 --- a/comedi/drivers/dt3000.c +++ b/comedi/drivers/dt3000.c @@ -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; diff --git a/comedi/drivers/fl512.c b/comedi/drivers/fl512.c index 9e02001a..15e4526f 100644 --- a/comedi/drivers/fl512.c +++ b/comedi/drivers/fl512.c @@ -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 */ diff --git a/comedi/drivers/icp_multi.c b/comedi/drivers/icp_multi.c index af5c55ca..2a9f67c3 100644 --- a/comedi/drivers/icp_multi.c +++ b/comedi/drivers/icp_multi.c @@ -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; diff --git a/comedi/drivers/ii_pci20kc.c b/comedi/drivers/ii_pci20kc.c index e98972aa..4bcbfc36 100644 --- a/comedi/drivers/ii_pci20kc.c +++ b/comedi/drivers/ii_pci20kc.c @@ -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; diff --git a/comedi/drivers/mpc8260cpm.c b/comedi/drivers/mpc8260cpm.c index ae19f55a..6752504d 100644 --- a/comedi/drivers/mpc8260cpm.c +++ b/comedi/drivers/mpc8260cpm.c @@ -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; diff --git a/comedi/drivers/multiq3.c b/comedi/drivers/multiq3.c index 906fe5ce..bd0011b6 100644 --- a/comedi/drivers/multiq3.c +++ b/comedi/drivers/multiq3.c @@ -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; diff --git a/comedi/drivers/ni_670x.c b/comedi/drivers/ni_670x.c index b41dd7a0..fcbd178e 100644 --- a/comedi/drivers/ni_670x.c +++ b/comedi/drivers/ni_670x.c @@ -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; diff --git a/comedi/drivers/ni_at_ao.c b/comedi/drivers/ni_at_ao.c index 695ca638..b8ab045c 100644 --- a/comedi/drivers/ni_at_ao.c +++ b/comedi/drivers/ni_at_ao.c @@ -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; diff --git a/comedi/drivers/ni_atmio16d.c b/comedi/drivers/ni_atmio16d.c index b2a95ba3..478d15ab 100644 --- a/comedi/drivers/ni_atmio16d.c +++ b/comedi/drivers/ni_atmio16d.c @@ -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; diff --git a/comedi/drivers/ni_labpc.c b/comedi/drivers/ni_labpc.c index 8ae35a2c..b2e7c52f 100644 --- a/comedi/drivers/ni_labpc.c +++ b/comedi/drivers/ni_labpc.c @@ -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; diff --git a/comedi/drivers/ni_pcidio.c b/comedi/drivers/ni_pcidio.c index 64bd93e8..36679af2 100644 --- a/comedi/drivers/ni_pcidio.c +++ b/comedi/drivers/ni_pcidio.c @@ -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; diff --git a/comedi/drivers/pcl711.c b/comedi/drivers/pcl711.c index 1b444b94..818fd63b 100644 --- a/comedi/drivers/pcl711.c +++ b/comedi/drivers/pcl711.c @@ -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; diff --git a/comedi/drivers/pcl725.c b/comedi/drivers/pcl725.c index f9c7e5ea..416e7c78 100644 --- a/comedi/drivers/pcl725.c +++ b/comedi/drivers/pcl725.c @@ -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; diff --git a/comedi/drivers/pcl726.c b/comedi/drivers/pcl726.c index 145c7ec2..fa610caa 100644 --- a/comedi/drivers/pcl726.c +++ b/comedi/drivers/pcl726.c @@ -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; diff --git a/comedi/drivers/pcl812.c b/comedi/drivers/pcl812.c index 233e342c..b84bff15 100644 --- a/comedi/drivers/pcl812.c +++ b/comedi/drivers/pcl812.c @@ -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; diff --git a/comedi/drivers/pcl816.c b/comedi/drivers/pcl816.c index b4a826dc..fda505b1 100644 --- a/comedi/drivers/pcl816.c +++ b/comedi/drivers/pcl816.c @@ -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; diff --git a/comedi/drivers/pcl818.c b/comedi/drivers/pcl818.c index 64376deb..e5d4bc7f 100644 --- a/comedi/drivers/pcl818.c +++ b/comedi/drivers/pcl818.c @@ -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; diff --git a/comedi/drivers/pcm3730.c b/comedi/drivers/pcm3730.c index f7fb1d5d..6ae0f8b6 100644 --- a/comedi/drivers/pcm3730.c +++ b/comedi/drivers/pcm3730.c @@ -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; diff --git a/comedi/drivers/poc.c b/comedi/drivers/poc.c index c2c32fa7..f5d572e6 100644 --- a/comedi/drivers/poc.c +++ b/comedi/drivers/poc.c @@ -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; diff --git a/comedi/drivers/rtd520.c b/comedi/drivers/rtd520.c index 9c959842..5720a150 100644 --- a/comedi/drivers/rtd520.c +++ b/comedi/drivers/rtd520.c @@ -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<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; diff --git a/comedi/drivers/rti800.c b/comedi/drivers/rti800.c index d4dec273..c5d16207 100644 --- a/comedi/drivers/rti800.c +++ b/comedi/drivers/rti800.c @@ -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; diff --git a/comedi/drivers/rti802.c b/comedi/drivers/rti802.c index 08724463..684b2e62 100644 --- a/comedi/drivers/rti802.c +++ b/comedi/drivers/rti802.c @@ -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; diff --git a/comedi/drivers/skel.c b/comedi/drivers/skel.c index a4325644..8f6ebc7c 100644 --- a/comedi/drivers/skel.c +++ b/comedi/drivers/skel.c @@ -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; diff --git a/comedi/drivers/ssv_dnp.c b/comedi/drivers/ssv_dnp.c index b8395330..0b4ba796 100644 --- a/comedi/drivers/ssv_dnp.c +++ b/comedi/drivers/ssv_dnp.c @@ -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; -- 2.26.2