[media] sanyo decoder: address was being truncated
authorSean Young <sean@mess.org>
Wed, 9 Nov 2016 16:13:34 +0000 (14:13 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 22 Nov 2016 12:34:55 +0000 (10:34 -0200)
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>
drivers/media/rc/ir-sanyo-decoder.c

index 7331e5e7c497a384f34251676d05062df1ed484b..b07d9caebeb1d5c8c515e61f6163686eea54c46c 100644 (file)
@@ -56,7 +56,8 @@ static int ir_sanyo_decode(struct rc_dev *dev, struct ir_raw_event ev)
 {
        struct sanyo_dec *data = &dev->raw->sanyo;
        u32 scancode;
-       u8 address, command, not_command;
+       u16 address;
+       u8 command, not_command;
 
        if (!is_timing_event(ev)) {
                if (ev.reset) {