Commit 34ae4160 authored by Ian Abbott's avatar Ian Abbott Committed by Greg Kroah-Hartman

staging: comedi: ni_at_a2150: use CMDF_PRIORITY

Replace use of `TRIG_RT` command flag with the equivalent flag
`CMDF_PRIORITY`.  The numeric value is unchanged.  Also replace
"TRIG_RT" with "CMDF_PRIORITY" in the kernel messages.
Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
Reviewed-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6a8df3a9
...@@ -511,9 +511,9 @@ static int a2150_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s) ...@@ -511,9 +511,9 @@ static int a2150_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
unsigned int old_config_bits = devpriv->config_bits; unsigned int old_config_bits = devpriv->config_bits;
unsigned int trigger_bits; unsigned int trigger_bits;
if (cmd->flags & TRIG_RT) { if (cmd->flags & CMDF_PRIORITY) {
dev_err(dev->class_dev, dev_err(dev->class_dev,
"dma incompatible with hard real-time interrupt (TRIG_RT), aborting\n"); "dma incompatible with hard real-time interrupt (CMDF_PRIORITY), aborting\n");
return -1; return -1;
} }
/* clear fifo and reset triggering circuitry */ /* clear fifo and reset triggering circuitry */
......
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