staging: comedi: addi_apci_3120: use CMDF_WAKE_EOS
authorIan Abbott <abbotti@mev.co.uk>
Wed, 3 Sep 2014 12:45:31 +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_WAKE_EOS` command flag with the new name
`CMDF_WAKE_EOS`.  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/addi-data/hwdrv_apci3120.c

index 77cee876a374b6659a97015892328379d5a6cf1b..87dff80197394c861f85b635b0bad8f94a783415 100644 (file)
@@ -1114,7 +1114,7 @@ static int apci3120_cyclic_ai(int mode,
                                          dmalen0;
                }
 
-               if (cmd->flags & TRIG_WAKE_EOS) {
+               if (cmd->flags & CMDF_WAKE_EOS) {
                        /*  don't we want wake up every scan? */
                        if (dmalen0 > scan_bytes) {
                                dmalen0 = scan_bytes;
@@ -1433,7 +1433,7 @@ static void apci3120_interrupt_dma(int irq, void *d)
                        devpriv->ul_DmaBufferVirtual[devpriv->
                                ui_DmaActualBuffer], samplesinbuf);
 
-               if (!(cmd->flags & TRIG_WAKE_EOS)) {
+               if (!(cmd->flags & CMDF_WAKE_EOS)) {
                        s->async->events |= COMEDI_CB_EOS;
                        comedi_event(dev, s);
                }