From: Valentin Vidic Date: Mon, 8 Jan 2018 17:38:31 +0000 (+0100) Subject: staging: pi433: replace shifting with BIT macro X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=9ab7bc50a8b0564aac43c9fa1f8c3bcf12536c05;p=openwrt%2Fstaging%2Fblogic.git staging: pi433: replace shifting with BIT macro Fixes checkpatch warnings: CHECK: Prefer using the BIT macro Signed-off-by: Valentin Vidic Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index 960249c600a5..f56425ffbe90 100644 --- a/drivers/staging/pi433/pi433_if.c +++ b/drivers/staging/pi433/pi433_if.c @@ -54,7 +54,7 @@ #include "pi433_if.h" #include "rf69.h" -#define N_PI433_MINORS (1U << MINORBITS) /*32*/ /* ... up to 256 */ +#define N_PI433_MINORS BIT(MINORBITS) /*32*/ /* ... up to 256 */ #define MAX_MSG_SIZE 900 /* min: FIFO_SIZE! */ #define MSG_FIFO_SIZE 65536 /* 65536 = 2^16 */ #define NUM_DIO 2