diff options
author | 2022-03-08 21:09:42 +1300 | |
---|---|---|
committer | 2022-03-14 18:31:24 +0100 | |
commit | 378c64302afe543ba6cedcbc696c08395e75aba4 (patch) | |
tree | 6d6898c81700c5f5316d6736f7279d772201a301 | |
parent | staging: r8188eu: remove comments in update_recvframe_attrib_88e (diff) | |
download | wireguard-linux-378c64302afe543ba6cedcbc696c08395e75aba4.tar.xz wireguard-linux-378c64302afe543ba6cedcbc696c08395e75aba4.zip |
staging: pi433: remove hardcoded mask value for easier readability
replace hardcoded value with the bitwise complement of the mask used to
extract value sent to rf69 chip.
Signed-off-by: Paulo Miguel Almeida <paulo.miguel.almeida.rodenas@gmail.com>
Link: https://lore.kernel.org/r/YicPRrH3HmpiTCxe@mail.google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/pi433/rf69.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c index 3028018f0b45..659c8c1b38fd 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -741,7 +741,7 @@ int rf69_set_fifo_threshold(struct spi_device *spi, u8 threshold) int retval; /* check input value */ - if (threshold & 0x80) { + if (threshold & ~MASK_FIFO_THRESH_VALUE) { dev_dbg(&spi->dev, "set: illegal fifo threshold %u\n", threshold); return -EINVAL; } |