staging: comedi: comedi_test: use CMDF_PRIORITY
authorIan Abbott <abbotti@mev.co.uk>
Wed, 3 Sep 2014 12:45:24 +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.

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/comedi_test.c

index 7aa23db593bc82ff9075b4b6f048aa8bd1cb9a65..00c03df725230d2527feade29ea417bbf61c511a 100644 (file)
@@ -302,7 +302,7 @@ static int waveform_ai_cmd(struct comedi_device *dev,
        struct waveform_private *devpriv = dev->private;
        struct comedi_cmd *cmd = &s->async->cmd;
 
-       if (cmd->flags & TRIG_RT) {
+       if (cmd->flags & CMDF_PRIORITY) {
                dev_err(dev->class_dev,
                        "commands at RT priority not supported in this driver\n");
                return -1;