projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6db0168
)
[media] rc: rc6 decoder should report protocol correctly
author
Sean Young
<sean@mess.org>
Mon, 19 Sep 2016 22:21:22 +0000
(19:21 -0300)
committer
Mauro Carvalho Chehab
<mchehab@s-opensource.com>
Thu, 22 Sep 2016 14:42:29 +0000
(11:42 -0300)
When reporting decoded protocol use the enum rather than the bitmap.
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/ir-rc6-decoder.c
patch
|
blob
|
history
diff --git
a/drivers/media/rc/ir-rc6-decoder.c
b/drivers/media/rc/ir-rc6-decoder.c
index e0e2edefa6510cdf39954f57e1b276f5bbacdb12..5cc54c967a80dd8ad29eb3eb50db437568bd073c 100644
(file)
--- a/
drivers/media/rc/ir-rc6-decoder.c
+++ b/
drivers/media/rc/ir-rc6-decoder.c
@@
-248,7
+248,7
@@
again:
toggle = 0;
break;
case 24:
- protocol = RC_
BIT
_RC6_6A_24;
+ protocol = RC_
TYPE
_RC6_6A_24;
toggle = 0;
break;
case 32:
@@
-257,7
+257,7
@@
again:
toggle = !!(scancode & RC6_6A_MCE_TOGGLE_MASK);
scancode &= ~RC6_6A_MCE_TOGGLE_MASK;
} else {
- protocol = RC_
BIT
_RC6_6A_32;
+ protocol = RC_
TYPE
_RC6_6A_32;
toggle = 0;
}
break;