From: Sean Young Date: Mon, 19 Sep 2016 22:21:22 +0000 (-0300) Subject: [media] rc: rc6 decoder should report protocol correctly X-Git-Tag: v4.9-rc4~7^2~57 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e998c92d6c70851cdc931a0ab5b6d4b554015955;p=platform%2Fkernel%2Flinux-amlogic.git [media] rc: rc6 decoder should report protocol correctly When reporting decoded protocol use the enum rather than the bitmap. Signed-off-by: Sean Young Signed-off-by: Mauro Carvalho Chehab --- 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;