diff options
author | Marcus Wolf <linux@wolf-entwicklungen.de> | 2017-11-08 19:13:56 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-06 15:49:26 +0100 |
commit | 202fc673c626e4ffe6b888c469b248ecc6d50265 (patch) | |
tree | 665df2d08d2e8cdf951fd320559d5f50eba9fea7 | |
parent | aece09024414b54158e03aa45f4a4436e7cb996c (diff) | |
download | linux-202fc673c626e4ffe6b888c469b248ecc6d50265.tar.bz2 |
staging: pi433: Fixes issue with bit shift in rf69_get_modulation
Fixes issue with bit shift in rf69_get_modulation
Signed-off-by: Marcus Wolf <linux@wolf-entwicklungen.de>
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 e69a2153c999..12c9df9cddde 100644 --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -102,7 +102,7 @@ enum modulation rf69_get_modulation(struct spi_device *spi) currentValue = READ_REG(REG_DATAMODUL); - switch (currentValue & MASK_DATAMODUL_MODULATION_TYPE >> 3) { // TODO improvement: change 3 to define + switch (currentValue & MASK_DATAMODUL_MODULATION_TYPE) { case DATAMODUL_MODULATION_TYPE_OOK: return OOK; case DATAMODUL_MODULATION_TYPE_FSK: return FSK; default: return undefined; |