]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/media/dvb/dvb-usb/vp7045.c
Merge tag 'v2.6.38' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[mv-sheeva.git] / drivers / media / dvb / dvb-usb / vp7045.c
index f13791ca59945a7f8b18f73dc88329faab524de7..ab0ab3c35e802c4599376609d20f04433f41d58a 100644 (file)
@@ -99,7 +99,7 @@ static int vp7045_power_ctrl(struct dvb_usb_device *d, int onoff)
 
 /* The keymapping struct. Somehow this should be loaded to the driver, but
  * currently it is hardcoded. */
-static struct ir_scancode ir_codes_vp7045_table[] = {
+static struct rc_map_table rc_map_vp7045_table[] = {
        { 0x0016, KEY_POWER },
        { 0x0010, KEY_MUTE },
        { 0x0003, KEY_1 },
@@ -165,10 +165,10 @@ static int vp7045_rc_query(struct dvb_usb_device *d, u32 *event, int *state)
                return 0;
        }
 
-       for (i = 0; i < ARRAY_SIZE(ir_codes_vp7045_table); i++)
-               if (rc5_data(&ir_codes_vp7045_table[i]) == key) {
+       for (i = 0; i < ARRAY_SIZE(rc_map_vp7045_table); i++)
+               if (rc5_data(&rc_map_vp7045_table[i]) == key) {
                        *state = REMOTE_KEY_PRESSED;
-                       *event = ir_codes_vp7045_table[i].keycode;
+                       *event = rc_map_vp7045_table[i].keycode;
                        break;
                }
        return 0;
@@ -261,8 +261,8 @@ static struct dvb_usb_device_properties vp7045_properties = {
 
        .rc.legacy = {
                .rc_interval      = 400,
-               .rc_key_map       = ir_codes_vp7045_table,
-               .rc_key_map_size  = ARRAY_SIZE(ir_codes_vp7045_table),
+               .rc_map_table       = rc_map_vp7045_table,
+               .rc_map_size  = ARRAY_SIZE(rc_map_vp7045_table),
                .rc_query         = vp7045_rc_query,
        },