staging: comedi: adl_pci6208: prefer using the BIT macro
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 9 Oct 2015 18:01:37 +0000 (11:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 04:26:38 +0000 (21:26 -0700)
As suggested by checkpatch.pl, use the BIT macro to define the
register bits.

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

index 7ed3fd6fbd3ec24ceb1f321c13b23aaebf8071de..ad7e7c4a5232fb6eeb4aa03dd5ca368c95c53e27 100644 (file)
@@ -41,7 +41,7 @@
  */
 #define PCI6208_AO_CONTROL(x)          (0x00 + (2 * (x)))
 #define PCI6208_AO_STATUS              0x00
-#define PCI6208_AO_STATUS_DATA_SEND    (1 << 0)
+#define PCI6208_AO_STATUS_DATA_SEND    BIT(0)
 #define PCI6208_DIO                    0x40
 #define PCI6208_DIO_DO_MASK            (0x0f)
 #define PCI6208_DIO_DO_SHIFT           (0)