projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aece090
)
staging: pi433: Fixes issue with bit shift in rf69_get_modulation
author
Marcus Wolf
<linux@wolf-entwicklungen.de>
Wed, 8 Nov 2017 17:13:56 +0000
(19:13 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 6 Dec 2017 14:49:26 +0000
(15:49 +0100)
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>
drivers/staging/pi433/rf69.c
patch
|
blob
|
history
diff --git
a/drivers/staging/pi433/rf69.c
b/drivers/staging/pi433/rf69.c
index e69a2153c999c796602f2884137faff8bc1ef8ab..12c9df9cddde22bea46650ededda1ed4d3e057ae 100644
(file)
--- 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;