diff options
author | Valentin Vidic <Valentin.Vidic@CARNet.hr> | 2018-01-08 18:38:31 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-01-09 15:38:48 +0100 |
commit | 9ab7bc50a8b0564aac43c9fa1f8c3bcf12536c05 (patch) | |
tree | c39f6adbd9a6a6ab01768de2d73233f1e8b94d61 /drivers/staging/pi433 | |
parent | b5c54c4520ce192e417cfaa5eaf7b709996eb9b5 (diff) | |
download | lwn-9ab7bc50a8b0564aac43c9fa1f8c3bcf12536c05.tar.gz lwn-9ab7bc50a8b0564aac43c9fa1f8c3bcf12536c05.zip |
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>
Diffstat (limited to 'drivers/staging/pi433')
-rw-r--r-- | drivers/staging/pi433/pi433_if.c | 2 |
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 @@ #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 |