staging: pi433: replace shifting with BIT macro
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Mon, 8 Jan 2018 17:38:31 +0000 (18:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Jan 2018 14:38:48 +0000 (15:38 +0100)
Fixes checkpatch warnings:

  CHECK: Prefer using the BIT macro

Signed-off-by: Valentin Vidic <Valentin.Vidic@CARNet.hr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/pi433/pi433_if.c

index 960249c600a5222bdf2a3190d22674678acac5f8..f56425ffbe902c9dcb312306fab8e54cb70559ec 100644 (file)
@@ -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