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

[media] sanyo decoder: address was being truncated

The address is 13 bits but it was stuffed in an u8, so 5 bits are
missing from the scancode.

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
2bfc04d6 a56bc171

+2 -1
+2 -1
drivers/media/rc/ir-sanyo-decoder.c
··· 56 56 { 57 57 struct sanyo_dec *data = &dev->raw->sanyo; 58 58 u32 scancode; 59 - u8 address, command, not_command; 59 + u16 address; 60 + u8 command, not_command; 60 61 61 62 if (!is_timing_event(ev)) { 62 63 if (ev.reset) {