mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-04 22:05:24 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
71c01379d1
commit
1da661759f
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user