Skip to contentSkip to conversation

staging: pi433: replace shifting with BIT macro

PATCH New Valentin Vidic 1 participant 1 message Jan 8, 2018 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: pi433: replace shifting with BIT macro

Fixes checkpatch warnings:

CHECK: Prefer using the BIT macro

---
 drivers/staging/pi433/pi433_if.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/pi433/pi433_if.c +1 -1
index 960249c600a5..f56425ffbe90 100644
@@ -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
Signature · 1 line
2.15.1