aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValentin Vidic <Valentin.Vidic@CARNet.hr>2018-01-08 12:38:31 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-01-09 09:38:48 -0500
commit9ab7bc50a8b0564aac43c9fa1f8c3bcf12536c05 (patch)
treec39f6adbd9a6a6ab01768de2d73233f1e8b94d61
parentb5c54c4520ce192e417cfaa5eaf7b709996eb9b5 (diff)
staging: pi433: replace shifting with BIT macro
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>
-rw-r--r--drivers/staging/pi433/pi433_if.c2
1 files changed, 1 insertions, 1 deletions
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 @@
54#include "pi433_if.h" 54#include "pi433_if.h"
55#include "rf69.h" 55#include "rf69.h"
56 56
57#define N_PI433_MINORS (1U << MINORBITS) /*32*/ /* ... up to 256 */ 57#define N_PI433_MINORS BIT(MINORBITS) /*32*/ /* ... up to 256 */
58#define MAX_MSG_SIZE 900 /* min: FIFO_SIZE! */ 58#define MAX_MSG_SIZE 900 /* min: FIFO_SIZE! */
59#define MSG_FIFO_SIZE 65536 /* 65536 = 2^16 */ 59#define MSG_FIFO_SIZE 65536 /* 65536 = 2^16 */
60#define NUM_DIO 2 60#define NUM_DIO 2