staging: comedi: addi_apci_3120: remove APCI3120_DISABLE_WATCHDOG
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 4 Nov 2014 17:54:19 +0000 (10:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Nov 2014 17:34:00 +0000 (09:34 -0800)
For aesthetics, remove this define and just use ~APCI3120_ENABLE_WATCHDOG.

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

index 3eb53f1cea90cf6fa92f6a065007f1ed9c835f39..f6812eab1d15c14ab1da61dbaa1d8f9de2f1fd7b 100644 (file)
@@ -113,7 +113,6 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY
 
 #define APCI3120_RD_STATUS             0x02
 #define APCI3120_ENABLE_WATCHDOG       0x20
-#define APCI3120_DISABLE_WATCHDOG      (~APCI3120_ENABLE_WATCHDOG)
 #define APCI3120_ENABLE_TIMER_COUNTER  0x10
 #define APCI3120_FC_TIMER              0x1000
 
@@ -1195,7 +1194,7 @@ static int apci3120_write_insn_timer(struct comedi_device *dev,
                        devpriv->mode &= ~APCI3120_ENABLE_TIMER_COUNTER;
                } else {
                        /* Disable WatchDog */
-                       devpriv->mode &= APCI3120_DISABLE_WATCHDOG;
+                       devpriv->mode &= ~APCI3120_ENABLE_WATCHDOG;
                }
                /*  Disable timer interrupt */
                devpriv->mode &= APCI3120_DISABLE_TIMER_INT;
This page took 0.025901 seconds and 5 git commands to generate.