[media] rc: rc6 decoder should report protocol correctly
authorSean Young <sean@mess.org>
Mon, 19 Sep 2016 22:21:22 +0000 (19:21 -0300)
committerMauro 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

index e0e2ede..5cc54c9 100644 (file)
@@ -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;