Commit 3ee0206b authored by Alexandru Guduleasa's avatar Alexandru Guduleasa Committed by Greg Kroah-Hartman

staging/comedi/drivers fix spelling errors

Fix the following spelling errors:
inital -> initial
continous -> continuous
aquisition -> acquisition
aquisitions -> acquisitions
immidiately -> immediately
Signed-off-by: default avatarAlexandru Guduleasa <alexandru.guduleasa@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fb281c2d
...@@ -39,7 +39,7 @@ Status: testing ...@@ -39,7 +39,7 @@ Status: testing
* *
* *
* Revision history: * Revision history:
* 0.1: inital version * 0.1: initial version
* 0.2: all basic functions implemented, digital I/O only for one port * 0.2: all basic functions implemented, digital I/O only for one port
* 0.3: proper vendor ID and driver name * 0.3: proper vendor ID and driver name
* 0.4: fixed D/A voltage range * 0.4: fixed D/A voltage range
...@@ -235,16 +235,16 @@ struct usbduxsub { ...@@ -235,16 +235,16 @@ struct usbduxsub {
short int ao_cmd_running; short int ao_cmd_running;
/* pwm is running */ /* pwm is running */
short int pwm_cmd_running; short int pwm_cmd_running;
/* continous aquisition */ /* continuous acquisition */
short int ai_continous; short int ai_continuous;
short int ao_continous; short int ao_continuous;
/* number of samples to acquire */ /* number of samples to acquire */
int ai_sample_count; int ai_sample_count;
int ao_sample_count; int ao_sample_count;
/* time between samples in units of the timer */ /* time between samples in units of the timer */
unsigned int ai_timer; unsigned int ai_timer;
unsigned int ao_timer; unsigned int ao_timer;
/* counter between aquisitions */ /* counter between acquisitions */
unsigned int ai_counter; unsigned int ai_counter;
unsigned int ao_counter; unsigned int ao_counter;
/* interval in frames/uframes */ /* interval in frames/uframes */
...@@ -455,8 +455,8 @@ static void usbduxsub_ai_IsocIrq(struct urb *urb) ...@@ -455,8 +455,8 @@ static void usbduxsub_ai_IsocIrq(struct urb *urb)
this_usbduxsub->ai_counter = this_usbduxsub->ai_timer; this_usbduxsub->ai_counter = this_usbduxsub->ai_timer;
/* test, if we transmit only a fixed number of samples */ /* test, if we transmit only a fixed number of samples */
if (!(this_usbduxsub->ai_continous)) { if (!(this_usbduxsub->ai_continuous)) {
/* not continous, fixed number of samples */ /* not continuous, fixed number of samples */
this_usbduxsub->ai_sample_count--; this_usbduxsub->ai_sample_count--;
/* all samples received? */ /* all samples received? */
if (this_usbduxsub->ai_sample_count < 0) { if (this_usbduxsub->ai_sample_count < 0) {
...@@ -607,8 +607,8 @@ static void usbduxsub_ao_IsocIrq(struct urb *urb) ...@@ -607,8 +607,8 @@ static void usbduxsub_ao_IsocIrq(struct urb *urb)
/* timer zero */ /* timer zero */
this_usbduxsub->ao_counter = this_usbduxsub->ao_timer; this_usbduxsub->ao_counter = this_usbduxsub->ao_timer;
/* handle non continous aquisition */ /* handle non continuous acquisition */
if (!(this_usbduxsub->ao_continous)) { if (!(this_usbduxsub->ao_continuous)) {
/* fixed number of samples */ /* fixed number of samples */
this_usbduxsub->ao_sample_count--; this_usbduxsub->ao_sample_count--;
if (this_usbduxsub->ao_sample_count < 0) { if (this_usbduxsub->ao_sample_count < 0) {
...@@ -925,7 +925,7 @@ static int usbdux_ai_cmdtest(struct comedi_device *dev, ...@@ -925,7 +925,7 @@ static int usbdux_ai_cmdtest(struct comedi_device *dev,
if (!cmd->scan_begin_src || tmp != cmd->scan_begin_src) if (!cmd->scan_begin_src || tmp != cmd->scan_begin_src)
err++; err++;
/* scanning is continous */ /* scanning is continuous */
tmp = cmd->convert_src; tmp = cmd->convert_src;
cmd->convert_src &= TRIG_NOW; cmd->convert_src &= TRIG_NOW;
if (!cmd->convert_src || tmp != cmd->convert_src) if (!cmd->convert_src || tmp != cmd->convert_src)
...@@ -1193,7 +1193,7 @@ static int usbdux_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s) ...@@ -1193,7 +1193,7 @@ static int usbdux_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
up(&this_usbduxsub->sem); up(&this_usbduxsub->sem);
return -EBUSY; return -EBUSY;
} }
/* set current channel of the running aquisition to zero */ /* set current channel of the running acquisition to zero */
s->async->cur_chan = 0; s->async->cur_chan = 0;
/* first the number of channels per time step */ /* first the number of channels per time step */
...@@ -1261,10 +1261,10 @@ static int usbdux_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s) ...@@ -1261,10 +1261,10 @@ static int usbdux_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
if (cmd->stop_src == TRIG_COUNT) { if (cmd->stop_src == TRIG_COUNT) {
/* data arrives as one packet */ /* data arrives as one packet */
this_usbduxsub->ai_sample_count = cmd->stop_arg; this_usbduxsub->ai_sample_count = cmd->stop_arg;
this_usbduxsub->ai_continous = 0; this_usbduxsub->ai_continuous = 0;
} else { } else {
/* continous aquisition */ /* continuous acquisition */
this_usbduxsub->ai_continous = 1; this_usbduxsub->ai_continuous = 1;
this_usbduxsub->ai_sample_count = 0; this_usbduxsub->ai_sample_count = 0;
} }
...@@ -1586,7 +1586,7 @@ static int usbdux_ao_cmdtest(struct comedi_device *dev, ...@@ -1586,7 +1586,7 @@ static int usbdux_ao_cmdtest(struct comedi_device *dev,
/* just now we scan also in the high speed mode every frame */ /* just now we scan also in the high speed mode every frame */
/* this is due to ehci driver limitations */ /* this is due to ehci driver limitations */
if (0) { /* (this_usbduxsub->high_speed) */ if (0) { /* (this_usbduxsub->high_speed) */
/* start immidiately a new scan */ /* start immediately a new scan */
/* the sampling rate is set by the coversion rate */ /* the sampling rate is set by the coversion rate */
cmd->scan_begin_src &= TRIG_FOLLOW; cmd->scan_begin_src &= TRIG_FOLLOW;
} else { } else {
...@@ -1596,7 +1596,7 @@ static int usbdux_ao_cmdtest(struct comedi_device *dev, ...@@ -1596,7 +1596,7 @@ static int usbdux_ao_cmdtest(struct comedi_device *dev,
if (!cmd->scan_begin_src || tmp != cmd->scan_begin_src) if (!cmd->scan_begin_src || tmp != cmd->scan_begin_src)
err++; err++;
/* scanning is continous */ /* scanning is continuous */
tmp = cmd->convert_src; tmp = cmd->convert_src;
/* all conversion events happen simultaneously */ /* all conversion events happen simultaneously */
...@@ -1710,7 +1710,7 @@ static int usbdux_ao_cmd(struct comedi_device *dev, struct comedi_subdevice *s) ...@@ -1710,7 +1710,7 @@ static int usbdux_ao_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
dev_dbg(&this_usbduxsub->interface->dev, dev_dbg(&this_usbduxsub->interface->dev,
"comedi%d: %s\n", dev->minor, __func__); "comedi%d: %s\n", dev->minor, __func__);
/* set current channel of the running aquisition to zero */ /* set current channel of the running acquisition to zero */
s->async->cur_chan = 0; s->async->cur_chan = 0;
for (i = 0; i < cmd->chanlist_len; ++i) { for (i = 0; i < cmd->chanlist_len; ++i) {
chan = CR_CHAN(cmd->chanlist[i]); chan = CR_CHAN(cmd->chanlist[i]);
...@@ -1759,7 +1759,7 @@ static int usbdux_ao_cmd(struct comedi_device *dev, struct comedi_subdevice *s) ...@@ -1759,7 +1759,7 @@ static int usbdux_ao_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
this_usbduxsub->ao_counter = this_usbduxsub->ao_timer; this_usbduxsub->ao_counter = this_usbduxsub->ao_timer;
if (cmd->stop_src == TRIG_COUNT) { if (cmd->stop_src == TRIG_COUNT) {
/* not continous */ /* not continuous */
/* counter */ /* counter */
/* high speed also scans everything at once */ /* high speed also scans everything at once */
if (0) { /* (this_usbduxsub->high_speed) */ if (0) { /* (this_usbduxsub->high_speed) */
...@@ -1771,10 +1771,10 @@ static int usbdux_ao_cmd(struct comedi_device *dev, struct comedi_subdevice *s) ...@@ -1771,10 +1771,10 @@ static int usbdux_ao_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
/* data arrives as one packet */ /* data arrives as one packet */
this_usbduxsub->ao_sample_count = cmd->stop_arg; this_usbduxsub->ao_sample_count = cmd->stop_arg;
} }
this_usbduxsub->ao_continous = 0; this_usbduxsub->ao_continuous = 0;
} else { } else {
/* continous aquisition */ /* continuous acquisition */
this_usbduxsub->ao_continous = 1; this_usbduxsub->ao_continuous = 1;
this_usbduxsub->ao_sample_count = 0; this_usbduxsub->ao_sample_count = 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment