staging: comedi: addi_common.h: remove ADDI_{EN, DIS}ABLE defines
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 29 May 2014 17:30:02 +0000 (10:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jun 2014 21:39:38 +0000 (14:39 -0700)
These defines don't add any additional clarity to the addi_data drivers.
They are also only used in the addi_apci_3120 driver. Just remove them.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi-data/addi_common.h
drivers/staging/comedi/drivers/addi_apci_3120.c

index 8ccd399d21b71cb23e3806fcb4ba41ba51850459..289083153ec680064829e214c809058b80f39e76 100644 (file)
@@ -21,9 +21,6 @@
 #define LOWORD(W)      (unsigned short)((W) & 0xFFFF)
 #define HIWORD(W)      (unsigned short)(((W) >> 16) & 0xFFFF)
 
-#define ADDI_ENABLE            1
-#define ADDI_DISABLE           0
-
 #define ADDIDATA_EEPROM                1
 #define ADDIDATA_NO_EEPROM     0
 #define ADDIDATA_93C76         "93C76"
index cc4f586ba20dca4650db41ca252772c879ba8fe2..0b77f1012d473476a35b46bd1b89eb5e23b0e4b3 100644 (file)
@@ -88,7 +88,7 @@ static int apci3120_auto_attach(struct comedi_device *dev,
                        dev->irq = pcidev->irq;
        }
 
-       devpriv->us_UseDma = ADDI_ENABLE;
+       devpriv->us_UseDma = 1;
 
        /* Allocate DMA buffers */
        devpriv->b_DmaDoubleBuffer = 0;
@@ -109,7 +109,7 @@ static int apci3120_auto_attach(struct comedi_device *dev,
                }
        }
        if (!devpriv->ul_DmaBufferVirtual[0])
-               devpriv->us_UseDma = ADDI_DISABLE;
+               devpriv->us_UseDma = 0;
 
        if (devpriv->ul_DmaBufferVirtual[1])
                devpriv->b_DmaDoubleBuffer = 1;