Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Sean Young and committed by
Mauro Carvalho Chehab
e998c92d 6db01688

+2 -2
+2 -2
drivers/media/rc/ir-rc6-decoder.c
··· 248 248 toggle = 0; 249 249 break; 250 250 case 24: 251 - protocol = RC_BIT_RC6_6A_24; 251 + protocol = RC_TYPE_RC6_6A_24; 252 252 toggle = 0; 253 253 break; 254 254 case 32: ··· 257 257 toggle = !!(scancode & RC6_6A_MCE_TOGGLE_MASK); 258 258 scancode &= ~RC6_6A_MCE_TOGGLE_MASK; 259 259 } else { 260 - protocol = RC_BIT_RC6_6A_32; 260 + protocol = RC_TYPE_RC6_6A_32; 261 261 toggle = 0; 262 262 } 263 263 break;