From: Saber Rezvani Date: Fri, 16 Dec 2016 20:20:04 +0000 (+0330) Subject: staging: comedi: ni_670x: using the BIT(x) macro X-Git-Tag: v4.11-rc1~116^2~494 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3c4a2d9e25eb090cbba7a4d1e3a91f2044324e17;p=karo-tx-linux.git staging: comedi: ni_670x: using the BIT(x) macro Fix the checkpatch.pl issue: CHECK: Prefer using the BIT macro replacing bit shifting on 1 with the BIT(x) macro. Signed-off-by: Saber Rezvani Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/ni_670x.c b/drivers/staging/comedi/drivers/ni_670x.c index 74911dbb2561..1d3ff60efcb8 100644 --- a/drivers/staging/comedi/drivers/ni_670x.c +++ b/drivers/staging/comedi/drivers/ni_670x.c @@ -141,7 +141,7 @@ static int ni_670x_dio_insn_config(struct comedi_device *dev, /* 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 WENAB BIT(7) /* window enable */ static int ni_670x_mite_init(struct pci_dev *pcidev) {