]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: comedi: addi_apci_2032: remove need for addi-data/addi_common.h
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 30 Nov 2012 01:20:04 +0000 (18:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Nov 2012 02:05:31 +0000 (18:05 -0800)
Only the ADDIDATA_ENABLE define is used from this header. Just
open-code the value to remove the dependency and remove the include.

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

index 46ab1da262a0456de6e1ad942352a0c629a49f44..9b1dee46c2b38b251aae7be241e4a1b5d26ba0e4 100644 (file)
@@ -32,8 +32,6 @@
 #include "../comedidev.h"
 #include "comedi_fc.h"
 
-#include "addi-data/addi_common.h"
-
 /*
  * PCI bar 1 I/O Register map
  */
@@ -71,12 +69,12 @@ static int i_APCI2032_ConfigDigitalOutput(struct comedi_device *dev,
                return -EINVAL;
        }
 
-       if (data[1] == ADDIDATA_ENABLE)
+       if (data[1] == 1)
                ul_Command |= APCI2032_INT_CTRL_VCC_ENA;
        else
                ul_Command &= ~APCI2032_INT_CTRL_VCC_ENA;
 
-       if (data[2] == ADDIDATA_ENABLE)
+       if (data[2] == 1)
                ul_Command |= APCI2032_INT_CTRL_CC_ENA;
        else
                ul_Command &= ~APCI2032_INT_CTRL_CC_ENA;