Commit 75d46fd7 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: pcmuio: remove 'continuous' from private data

This member of the private data is set based on the cmd->stop_src. Just use the
cmd->stop_src directly and remove the member.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 71731264
...@@ -132,7 +132,6 @@ struct pcmuio_asic { ...@@ -132,7 +132,6 @@ struct pcmuio_asic {
unsigned int enabled_mask; unsigned int enabled_mask;
unsigned int stop_count; unsigned int stop_count;
unsigned int active:1; unsigned int active:1;
unsigned int continuous:1;
}; };
struct pcmuio_private { struct pcmuio_private {
...@@ -349,8 +348,7 @@ static void pcmuio_handle_intr_subdev(struct comedi_device *dev, ...@@ -349,8 +348,7 @@ static void pcmuio_handle_intr_subdev(struct comedi_device *dev,
} }
/* Check for end of acquisition. */ /* Check for end of acquisition. */
if (!chip->continuous) { if (cmd->stop_src == TRIG_COUNT) {
/* stop_src == TRIG_COUNT */
if (chip->stop_count > 0) { if (chip->stop_count > 0) {
chip->stop_count--; chip->stop_count--;
if (chip->stop_count == 0) { if (chip->stop_count == 0) {
...@@ -499,12 +497,10 @@ static int pcmuio_cmd(struct comedi_device *dev, struct comedi_subdevice *s) ...@@ -499,12 +497,10 @@ static int pcmuio_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
/* Set up end of acquisition. */ /* Set up end of acquisition. */
switch (cmd->stop_src) { switch (cmd->stop_src) {
case TRIG_COUNT: case TRIG_COUNT:
chip->continuous = 0;
chip->stop_count = cmd->stop_arg; chip->stop_count = cmd->stop_arg;
break; break;
default: default:
/* TRIG_NONE */ /* TRIG_NONE */
chip->continuous = 1;
chip->stop_count = 0; chip->stop_count = 0;
break; break;
} }
......
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