diff options
author | Sean Young <sean@mess.org> | 2016-09-19 22:21:22 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-09-22 14:42:29 (GMT) |
commit | e998c92d6c70851cdc931a0ab5b6d4b554015955 (patch) | |
tree | 9f5e131fe2e95d3f47f3241fcc9ff0e88c904082 /drivers | |
parent | 6db0168821fa4edc3156d36933da0016740a5e03 (diff) | |
download | linux-e998c92d6c70851cdc931a0ab5b6d4b554015955.tar.xz |
[media] rc: rc6 decoder should report protocol correctly
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/rc/ir-rc6-decoder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/rc/ir-rc6-decoder.c b/drivers/media/rc/ir-rc6-decoder.c index e0e2ede..5cc54c9 100644 --- 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; |