staging: comedi: ni_at_a2150: use CMDF_PRIORITY
authorIan Abbott <abbotti@mev.co.uk>
Wed, 3 Sep 2014 12:45:27 +0000 (13:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 20:50:13 +0000 (13:50 -0700)
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: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_at_a2150.c

index 32e7bf2..4ff412d 100644 (file)
@@ -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 trigger_bits;
 
-       if (cmd->flags & TRIG_RT) {
+       if (cmd->flags & CMDF_PRIORITY) {
                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;
        }
        /*  clear fifo and reset triggering circuitry */