]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] dvb-usb.h function rc5_scan
authorManoel Pinheiro <pinusdtv@hotmail.com>
Sat, 7 May 2011 06:49:13 +0000 (03:49 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 1 Jun 2011 20:27:21 +0000 (17:27 -0300)
commit57ae240ff35fb0472bb6b10c3bc4258b067acbc1
treec7af3e1a1149f7edec6e2fe7922d913d25d55fd7
parent81b78d7b9c18f69a54d0b5f867e0a9a20f20dc63
[media] dvb-usb.h function rc5_scan

The function "rc5_scan" in "dvb_usb.h" is returning invalid value.
The value should be returned "u16" but is returning "u8".

See example below in "drivers/media/dvb/dvb-usb/opera1.c":

        send_key = (send_key & 0xffff) | 0x0100;

        for (i = 0; i < ARRAY_SIZE(rc_map_opera1_table); i++) {
            if (rc5_scan(&rc_map_opera1_table[i]) == (send_key & 0xffff)) {
                *state = REMOTE_KEY_PRESSED;
                *event = rc_map_opera1_table[i].keycode;
                opst->last_key_pressed =
                    rc_map_opera1_table[i].keycode;
                break;
            }
            opst->last_key_pressed = 0;
        }

Signed-off-by: Manoel Pinheiro <pinusdtv@hotmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/dvb-usb.h