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

index 9e76a363784e0eb4d57ab7df4fefb520ff38e5b5..5238a98e20bbfe5bd68e9c15234736e2bbed7f23 100644 (file)
@@ -690,7 +690,7 @@ static int labpc_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
        if (labpc_have_dma_chan(dev) &&
            /* dma unsafe at RT priority,
             * and too much setup time for TRIG_WAKE_EOS */
-           (cmd->flags & (TRIG_WAKE_EOS | TRIG_RT)) == 0)
+           (cmd->flags & (TRIG_WAKE_EOS | CMDF_PRIORITY)) == 0)
                xfer = isa_dma_transfer;
        else if (/* pc-plus has no fifo-half full interrupt */
                 board->is_labpc1200 &&