staging: comedi: 8255_pci: prefer using the BIT macro
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 8 Oct 2015 20:05:02 +0000 (13:05 -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/8255_pci.c

index bb9854b..38c05d1 100644 (file)
@@ -178,8 +178,8 @@ static const struct pci_8255_boardinfo pci_8255_boards[] = {
 };
 
 /* ripped from mite.h and mite_setup2() to avoid mite dependency */
-#define MITE_IODWBSR   0xc0     /* IO Device Window Base Size Register */
-#define WENAB          (1 << 7) /* window enable */
+#define MITE_IODWBSR   0xc0    /* IO Device Window Base Size Register */
+#define WENAB          BIT(7)  /* window enable */
 
 static int pci_8255_mite_init(struct pci_dev *pcidev)
 {