aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/comedi/drivers/8255_pci.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2015-10-08 13:05:02 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-12 21:26:38 -0700
commit1da661759f5f34f218d4d65c8872d271146d561b (patch)
treecbdd105789fe142baee54ec94078e3ab6ec852ef /drivers/staging/comedi/drivers/8255_pci.c
parentstaging: comedi: fl512: usleep_range is preferred over udelay (diff)
downloadlinux-dev-1da661759f5f34f218d4d65c8872d271146d561b.tar.xz
linux-dev-1da661759f5f34f218d4d65c8872d271146d561b.zip
staging: comedi: 8255_pci: prefer using the BIT macro
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>
Diffstat (limited to 'drivers/staging/comedi/drivers/8255_pci.c')
-rw-r--r--drivers/staging/comedi/drivers/8255_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/comedi/drivers/8255_pci.c b/drivers/staging/comedi/drivers/8255_pci.c
index bb9854b56807..38c05d1ec647 100644
--- a/drivers/staging/comedi/drivers/8255_pci.c
+++ b/drivers/staging/comedi/drivers/8255_pci.c
@@ -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)
{