Commit d100e659 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] rc: use rc_map_ prefix for all rc map tables

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 2f4f58d6
...@@ -95,7 +95,7 @@ static struct rc_map_table mantis_ir_table[] = { ...@@ -95,7 +95,7 @@ static struct rc_map_table mantis_ir_table[] = {
{ 0x00, KEY_BLUE }, { 0x00, KEY_BLUE },
}; };
static struct rc_keymap ir_mantis_map = { static struct rc_map_list ir_mantis_map = {
.map = { .map = {
.scan = mantis_ir_table, .scan = mantis_ir_table,
.size = ARRAY_SIZE(mantis_ir_table), .size = ARRAY_SIZE(mantis_ir_table),
...@@ -109,7 +109,7 @@ int mantis_input_init(struct mantis_pci *mantis) ...@@ -109,7 +109,7 @@ int mantis_input_init(struct mantis_pci *mantis)
struct rc_dev *dev; struct rc_dev *dev;
int err; int err;
err = ir_register_map(&ir_mantis_map); err = rc_map_register(&ir_mantis_map);
if (err) if (err)
goto out; goto out;
...@@ -145,7 +145,7 @@ int mantis_input_init(struct mantis_pci *mantis) ...@@ -145,7 +145,7 @@ int mantis_input_init(struct mantis_pci *mantis)
out_dev: out_dev:
rc_free_device(dev); rc_free_device(dev);
out_map: out_map:
ir_unregister_map(&ir_mantis_map); rc_map_unregister(&ir_mantis_map);
out: out:
return err; return err;
} }
...@@ -153,7 +153,7 @@ int mantis_input_init(struct mantis_pci *mantis) ...@@ -153,7 +153,7 @@ int mantis_input_init(struct mantis_pci *mantis)
int mantis_exit(struct mantis_pci *mantis) int mantis_exit(struct mantis_pci *mantis)
{ {
rc_unregister_device(mantis->rc); rc_unregister_device(mantis->rc);
ir_unregister_map(&ir_mantis_map); rc_map_unregister(&ir_mantis_map);
return 0; return 0;
} }
...@@ -63,7 +63,7 @@ static struct rc_map_table adstech_dvb_t_pci[] = { ...@@ -63,7 +63,7 @@ static struct rc_map_table adstech_dvb_t_pci[] = {
{ 0x1c, KEY_VOLUMEDOWN }, { 0x1c, KEY_VOLUMEDOWN },
}; };
static struct rc_keymap adstech_dvb_t_pci_map = { static struct rc_map_list adstech_dvb_t_pci_map = {
.map = { .map = {
.scan = adstech_dvb_t_pci, .scan = adstech_dvb_t_pci,
.size = ARRAY_SIZE(adstech_dvb_t_pci), .size = ARRAY_SIZE(adstech_dvb_t_pci),
...@@ -74,12 +74,12 @@ static struct rc_keymap adstech_dvb_t_pci_map = { ...@@ -74,12 +74,12 @@ static struct rc_keymap adstech_dvb_t_pci_map = {
static int __init init_rc_map_adstech_dvb_t_pci(void) static int __init init_rc_map_adstech_dvb_t_pci(void)
{ {
return ir_register_map(&adstech_dvb_t_pci_map); return rc_map_register(&adstech_dvb_t_pci_map);
} }
static void __exit exit_rc_map_adstech_dvb_t_pci(void) static void __exit exit_rc_map_adstech_dvb_t_pci(void)
{ {
ir_unregister_map(&adstech_dvb_t_pci_map); rc_map_unregister(&adstech_dvb_t_pci_map);
} }
module_init(init_rc_map_adstech_dvb_t_pci) module_init(init_rc_map_adstech_dvb_t_pci)
......
...@@ -42,7 +42,7 @@ static struct rc_map_table alink_dtu_m[] = { ...@@ -42,7 +42,7 @@ static struct rc_map_table alink_dtu_m[] = {
{ 0x081d, KEY_CHANNELDOWN }, { 0x081d, KEY_CHANNELDOWN },
}; };
static struct rc_keymap alink_dtu_m_map = { static struct rc_map_list alink_dtu_m_map = {
.map = { .map = {
.scan = alink_dtu_m, .scan = alink_dtu_m,
.size = ARRAY_SIZE(alink_dtu_m), .size = ARRAY_SIZE(alink_dtu_m),
...@@ -53,12 +53,12 @@ static struct rc_keymap alink_dtu_m_map = { ...@@ -53,12 +53,12 @@ static struct rc_keymap alink_dtu_m_map = {
static int __init init_rc_map_alink_dtu_m(void) static int __init init_rc_map_alink_dtu_m(void)
{ {
return ir_register_map(&alink_dtu_m_map); return rc_map_register(&alink_dtu_m_map);
} }
static void __exit exit_rc_map_alink_dtu_m(void) static void __exit exit_rc_map_alink_dtu_m(void)
{ {
ir_unregister_map(&alink_dtu_m_map); rc_map_unregister(&alink_dtu_m_map);
} }
module_init(init_rc_map_alink_dtu_m) module_init(init_rc_map_alink_dtu_m)
......
...@@ -67,7 +67,7 @@ static struct rc_map_table anysee[] = { ...@@ -67,7 +67,7 @@ static struct rc_map_table anysee[] = {
{ 0x0851, KEY_PAUSE }, { 0x0851, KEY_PAUSE },
}; };
static struct rc_keymap anysee_map = { static struct rc_map_list anysee_map = {
.map = { .map = {
.scan = anysee, .scan = anysee,
.size = ARRAY_SIZE(anysee), .size = ARRAY_SIZE(anysee),
...@@ -78,12 +78,12 @@ static struct rc_keymap anysee_map = { ...@@ -78,12 +78,12 @@ static struct rc_keymap anysee_map = {
static int __init init_rc_map_anysee(void) static int __init init_rc_map_anysee(void)
{ {
return ir_register_map(&anysee_map); return rc_map_register(&anysee_map);
} }
static void __exit exit_rc_map_anysee(void) static void __exit exit_rc_map_anysee(void)
{ {
ir_unregister_map(&anysee_map); rc_map_unregister(&anysee_map);
} }
module_init(init_rc_map_anysee) module_init(init_rc_map_anysee)
......
...@@ -54,7 +54,7 @@ static struct rc_map_table apac_viewcomp[] = { ...@@ -54,7 +54,7 @@ static struct rc_map_table apac_viewcomp[] = {
{ 0x18, KEY_KPMINUS }, /* fine tune <<<< */ { 0x18, KEY_KPMINUS }, /* fine tune <<<< */
}; };
static struct rc_keymap apac_viewcomp_map = { static struct rc_map_list apac_viewcomp_map = {
.map = { .map = {
.scan = apac_viewcomp, .scan = apac_viewcomp,
.size = ARRAY_SIZE(apac_viewcomp), .size = ARRAY_SIZE(apac_viewcomp),
...@@ -65,12 +65,12 @@ static struct rc_keymap apac_viewcomp_map = { ...@@ -65,12 +65,12 @@ static struct rc_keymap apac_viewcomp_map = {
static int __init init_rc_map_apac_viewcomp(void) static int __init init_rc_map_apac_viewcomp(void)
{ {
return ir_register_map(&apac_viewcomp_map); return rc_map_register(&apac_viewcomp_map);
} }
static void __exit exit_rc_map_apac_viewcomp(void) static void __exit exit_rc_map_apac_viewcomp(void)
{ {
ir_unregister_map(&apac_viewcomp_map); rc_map_unregister(&apac_viewcomp_map);
} }
module_init(init_rc_map_apac_viewcomp) module_init(init_rc_map_apac_viewcomp)
......
...@@ -65,7 +65,7 @@ static struct rc_map_table asus_pc39[] = { ...@@ -65,7 +65,7 @@ static struct rc_map_table asus_pc39[] = {
{ 0x083e, KEY_DVD }, /* dvd */ { 0x083e, KEY_DVD }, /* dvd */
}; };
static struct rc_keymap asus_pc39_map = { static struct rc_map_list asus_pc39_map = {
.map = { .map = {
.scan = asus_pc39, .scan = asus_pc39,
.size = ARRAY_SIZE(asus_pc39), .size = ARRAY_SIZE(asus_pc39),
...@@ -76,12 +76,12 @@ static struct rc_keymap asus_pc39_map = { ...@@ -76,12 +76,12 @@ static struct rc_keymap asus_pc39_map = {
static int __init init_rc_map_asus_pc39(void) static int __init init_rc_map_asus_pc39(void)
{ {
return ir_register_map(&asus_pc39_map); return rc_map_register(&asus_pc39_map);
} }
static void __exit exit_rc_map_asus_pc39(void) static void __exit exit_rc_map_asus_pc39(void)
{ {
ir_unregister_map(&asus_pc39_map); rc_map_unregister(&asus_pc39_map);
} }
module_init(init_rc_map_asus_pc39) module_init(init_rc_map_asus_pc39)
......
...@@ -43,7 +43,7 @@ static struct rc_map_table ati_tv_wonder_hd_600[] = { ...@@ -43,7 +43,7 @@ static struct rc_map_table ati_tv_wonder_hd_600[] = {
{ 0x17, KEY_VOLUMEDOWN}, { 0x17, KEY_VOLUMEDOWN},
}; };
static struct rc_keymap ati_tv_wonder_hd_600_map = { static struct rc_map_list ati_tv_wonder_hd_600_map = {
.map = { .map = {
.scan = ati_tv_wonder_hd_600, .scan = ati_tv_wonder_hd_600,
.size = ARRAY_SIZE(ati_tv_wonder_hd_600), .size = ARRAY_SIZE(ati_tv_wonder_hd_600),
...@@ -54,12 +54,12 @@ static struct rc_keymap ati_tv_wonder_hd_600_map = { ...@@ -54,12 +54,12 @@ static struct rc_keymap ati_tv_wonder_hd_600_map = {
static int __init init_rc_map_ati_tv_wonder_hd_600(void) static int __init init_rc_map_ati_tv_wonder_hd_600(void)
{ {
return ir_register_map(&ati_tv_wonder_hd_600_map); return rc_map_register(&ati_tv_wonder_hd_600_map);
} }
static void __exit exit_rc_map_ati_tv_wonder_hd_600(void) static void __exit exit_rc_map_ati_tv_wonder_hd_600(void)
{ {
ir_unregister_map(&ati_tv_wonder_hd_600_map); rc_map_unregister(&ati_tv_wonder_hd_600_map);
} }
module_init(init_rc_map_ati_tv_wonder_hd_600) module_init(init_rc_map_ati_tv_wonder_hd_600)
......
...@@ -49,7 +49,7 @@ static struct rc_map_table avermedia_a16d[] = { ...@@ -49,7 +49,7 @@ static struct rc_map_table avermedia_a16d[] = {
{ 0x2a, KEY_MENU}, { 0x2a, KEY_MENU},
}; };
static struct rc_keymap avermedia_a16d_map = { static struct rc_map_list avermedia_a16d_map = {
.map = { .map = {
.scan = avermedia_a16d, .scan = avermedia_a16d,
.size = ARRAY_SIZE(avermedia_a16d), .size = ARRAY_SIZE(avermedia_a16d),
...@@ -60,12 +60,12 @@ static struct rc_keymap avermedia_a16d_map = { ...@@ -60,12 +60,12 @@ static struct rc_keymap avermedia_a16d_map = {
static int __init init_rc_map_avermedia_a16d(void) static int __init init_rc_map_avermedia_a16d(void)
{ {
return ir_register_map(&avermedia_a16d_map); return rc_map_register(&avermedia_a16d_map);
} }
static void __exit exit_rc_map_avermedia_a16d(void) static void __exit exit_rc_map_avermedia_a16d(void)
{ {
ir_unregister_map(&avermedia_a16d_map); rc_map_unregister(&avermedia_a16d_map);
} }
module_init(init_rc_map_avermedia_a16d) module_init(init_rc_map_avermedia_a16d)
......
...@@ -71,7 +71,7 @@ static struct rc_map_table avermedia_cardbus[] = { ...@@ -71,7 +71,7 @@ static struct rc_map_table avermedia_cardbus[] = {
{ 0x43, KEY_CHANNELUP }, /* Channel up */ { 0x43, KEY_CHANNELUP }, /* Channel up */
}; };
static struct rc_keymap avermedia_cardbus_map = { static struct rc_map_list avermedia_cardbus_map = {
.map = { .map = {
.scan = avermedia_cardbus, .scan = avermedia_cardbus,
.size = ARRAY_SIZE(avermedia_cardbus), .size = ARRAY_SIZE(avermedia_cardbus),
...@@ -82,12 +82,12 @@ static struct rc_keymap avermedia_cardbus_map = { ...@@ -82,12 +82,12 @@ static struct rc_keymap avermedia_cardbus_map = {
static int __init init_rc_map_avermedia_cardbus(void) static int __init init_rc_map_avermedia_cardbus(void)
{ {
return ir_register_map(&avermedia_cardbus_map); return rc_map_register(&avermedia_cardbus_map);
} }
static void __exit exit_rc_map_avermedia_cardbus(void) static void __exit exit_rc_map_avermedia_cardbus(void)
{ {
ir_unregister_map(&avermedia_cardbus_map); rc_map_unregister(&avermedia_cardbus_map);
} }
module_init(init_rc_map_avermedia_cardbus) module_init(init_rc_map_avermedia_cardbus)
......
...@@ -52,7 +52,7 @@ static struct rc_map_table avermedia_dvbt[] = { ...@@ -52,7 +52,7 @@ static struct rc_map_table avermedia_dvbt[] = {
{ 0x3e, KEY_VOLUMEUP }, /* 'volume +' */ { 0x3e, KEY_VOLUMEUP }, /* 'volume +' */
}; };
static struct rc_keymap avermedia_dvbt_map = { static struct rc_map_list avermedia_dvbt_map = {
.map = { .map = {
.scan = avermedia_dvbt, .scan = avermedia_dvbt,
.size = ARRAY_SIZE(avermedia_dvbt), .size = ARRAY_SIZE(avermedia_dvbt),
...@@ -63,12 +63,12 @@ static struct rc_keymap avermedia_dvbt_map = { ...@@ -63,12 +63,12 @@ static struct rc_keymap avermedia_dvbt_map = {
static int __init init_rc_map_avermedia_dvbt(void) static int __init init_rc_map_avermedia_dvbt(void)
{ {
return ir_register_map(&avermedia_dvbt_map); return rc_map_register(&avermedia_dvbt_map);
} }
static void __exit exit_rc_map_avermedia_dvbt(void) static void __exit exit_rc_map_avermedia_dvbt(void)
{ {
ir_unregister_map(&avermedia_dvbt_map); rc_map_unregister(&avermedia_dvbt_map);
} }
module_init(init_rc_map_avermedia_dvbt) module_init(init_rc_map_avermedia_dvbt)
......
...@@ -121,7 +121,7 @@ static struct rc_map_table avermedia_m135a[] = { ...@@ -121,7 +121,7 @@ static struct rc_map_table avermedia_m135a[] = {
{ 0x041e, KEY_NEXT }, { 0x041e, KEY_NEXT },
}; };
static struct rc_keymap avermedia_m135a_map = { static struct rc_map_list avermedia_m135a_map = {
.map = { .map = {
.scan = avermedia_m135a, .scan = avermedia_m135a,
.size = ARRAY_SIZE(avermedia_m135a), .size = ARRAY_SIZE(avermedia_m135a),
...@@ -132,12 +132,12 @@ static struct rc_keymap avermedia_m135a_map = { ...@@ -132,12 +132,12 @@ static struct rc_keymap avermedia_m135a_map = {
static int __init init_rc_map_avermedia_m135a(void) static int __init init_rc_map_avermedia_m135a(void)
{ {
return ir_register_map(&avermedia_m135a_map); return rc_map_register(&avermedia_m135a_map);
} }
static void __exit exit_rc_map_avermedia_m135a(void) static void __exit exit_rc_map_avermedia_m135a(void)
{ {
ir_unregister_map(&avermedia_m135a_map); rc_map_unregister(&avermedia_m135a_map);
} }
module_init(init_rc_map_avermedia_m135a) module_init(init_rc_map_avermedia_m135a)
......
...@@ -69,7 +69,7 @@ static struct rc_map_table avermedia_m733a_rm_k6[] = { ...@@ -69,7 +69,7 @@ static struct rc_map_table avermedia_m733a_rm_k6[] = {
{ 0x041e, KEY_NEXT }, { 0x041e, KEY_NEXT },
}; };
static struct rc_keymap avermedia_m733a_rm_k6_map = { static struct rc_map_list avermedia_m733a_rm_k6_map = {
.map = { .map = {
.scan = avermedia_m733a_rm_k6, .scan = avermedia_m733a_rm_k6,
.size = ARRAY_SIZE(avermedia_m733a_rm_k6), .size = ARRAY_SIZE(avermedia_m733a_rm_k6),
...@@ -80,12 +80,12 @@ static struct rc_keymap avermedia_m733a_rm_k6_map = { ...@@ -80,12 +80,12 @@ static struct rc_keymap avermedia_m733a_rm_k6_map = {
static int __init init_rc_map_avermedia_m733a_rm_k6(void) static int __init init_rc_map_avermedia_m733a_rm_k6(void)
{ {
return ir_register_map(&avermedia_m733a_rm_k6_map); return rc_map_register(&avermedia_m733a_rm_k6_map);
} }
static void __exit exit_rc_map_avermedia_m733a_rm_k6(void) static void __exit exit_rc_map_avermedia_m733a_rm_k6(void)
{ {
ir_unregister_map(&avermedia_m733a_rm_k6_map); rc_map_unregister(&avermedia_m733a_rm_k6_map);
} }
module_init(init_rc_map_avermedia_m733a_rm_k6) module_init(init_rc_map_avermedia_m733a_rm_k6)
......
...@@ -53,7 +53,7 @@ static struct rc_map_table avermedia_rm_ks[] = { ...@@ -53,7 +53,7 @@ static struct rc_map_table avermedia_rm_ks[] = {
{ 0x0556, KEY_ZOOM }, { 0x0556, KEY_ZOOM },
}; };
static struct rc_keymap avermedia_rm_ks_map = { static struct rc_map_list avermedia_rm_ks_map = {
.map = { .map = {
.scan = avermedia_rm_ks, .scan = avermedia_rm_ks,
.size = ARRAY_SIZE(avermedia_rm_ks), .size = ARRAY_SIZE(avermedia_rm_ks),
...@@ -64,12 +64,12 @@ static struct rc_keymap avermedia_rm_ks_map = { ...@@ -64,12 +64,12 @@ static struct rc_keymap avermedia_rm_ks_map = {
static int __init init_rc_map_avermedia_rm_ks(void) static int __init init_rc_map_avermedia_rm_ks(void)
{ {
return ir_register_map(&avermedia_rm_ks_map); return rc_map_register(&avermedia_rm_ks_map);
} }
static void __exit exit_rc_map_avermedia_rm_ks(void) static void __exit exit_rc_map_avermedia_rm_ks(void)
{ {
ir_unregister_map(&avermedia_rm_ks_map); rc_map_unregister(&avermedia_rm_ks_map);
} }
module_init(init_rc_map_avermedia_rm_ks) module_init(init_rc_map_avermedia_rm_ks)
......
...@@ -60,7 +60,7 @@ static struct rc_map_table avermedia[] = { ...@@ -60,7 +60,7 @@ static struct rc_map_table avermedia[] = {
{ 0x31, KEY_CHANNELUP } /* CHANNEL/PAGE+ */ { 0x31, KEY_CHANNELUP } /* CHANNEL/PAGE+ */
}; };
static struct rc_keymap avermedia_map = { static struct rc_map_list avermedia_map = {
.map = { .map = {
.scan = avermedia, .scan = avermedia,
.size = ARRAY_SIZE(avermedia), .size = ARRAY_SIZE(avermedia),
...@@ -71,12 +71,12 @@ static struct rc_keymap avermedia_map = { ...@@ -71,12 +71,12 @@ static struct rc_keymap avermedia_map = {
static int __init init_rc_map_avermedia(void) static int __init init_rc_map_avermedia(void)
{ {
return ir_register_map(&avermedia_map); return rc_map_register(&avermedia_map);
} }
static void __exit exit_rc_map_avermedia(void) static void __exit exit_rc_map_avermedia(void)
{ {
ir_unregister_map(&avermedia_map); rc_map_unregister(&avermedia_map);
} }
module_init(init_rc_map_avermedia) module_init(init_rc_map_avermedia)
......
...@@ -59,7 +59,7 @@ static struct rc_map_table avertv_303[] = { ...@@ -59,7 +59,7 @@ static struct rc_map_table avertv_303[] = {
{ 0x1b, KEY_UP }, { 0x1b, KEY_UP },
}; };
static struct rc_keymap avertv_303_map = { static struct rc_map_list avertv_303_map = {
.map = { .map = {
.scan = avertv_303, .scan = avertv_303,
.size = ARRAY_SIZE(avertv_303), .size = ARRAY_SIZE(avertv_303),
...@@ -70,12 +70,12 @@ static struct rc_keymap avertv_303_map = { ...@@ -70,12 +70,12 @@ static struct rc_keymap avertv_303_map = {
static int __init init_rc_map_avertv_303(void) static int __init init_rc_map_avertv_303(void)
{ {
return ir_register_map(&avertv_303_map); return rc_map_register(&avertv_303_map);
} }
static void __exit exit_rc_map_avertv_303(void) static void __exit exit_rc_map_avertv_303(void)
{ {
ir_unregister_map(&avertv_303_map); rc_map_unregister(&avertv_303_map);
} }
module_init(init_rc_map_avertv_303) module_init(init_rc_map_avertv_303)
......
...@@ -76,7 +76,7 @@ static struct rc_map_table azurewave_ad_tu700[] = { ...@@ -76,7 +76,7 @@ static struct rc_map_table azurewave_ad_tu700[] = {
{ 0x005f, KEY_BLUE }, { 0x005f, KEY_BLUE },
}; };
static struct rc_keymap azurewave_ad_tu700_map = { static struct rc_map_list azurewave_ad_tu700_map = {
.map = { .map = {
.scan = azurewave_ad_tu700, .scan = azurewave_ad_tu700,
.size = ARRAY_SIZE(azurewave_ad_tu700), .size = ARRAY_SIZE(azurewave_ad_tu700),
...@@ -87,12 +87,12 @@ static struct rc_keymap azurewave_ad_tu700_map = { ...@@ -87,12 +87,12 @@ static struct rc_keymap azurewave_ad_tu700_map = {
static int __init init_rc_map_azurewave_ad_tu700(void) static int __init init_rc_map_azurewave_ad_tu700(void)
{ {
return ir_register_map(&azurewave_ad_tu700_map); return rc_map_register(&azurewave_ad_tu700_map);
} }
static void __exit exit_rc_map_azurewave_ad_tu700(void) static void __exit exit_rc_map_azurewave_ad_tu700(void)
{ {
ir_unregister_map(&azurewave_ad_tu700_map); rc_map_unregister(&azurewave_ad_tu700_map);
} }
module_init(init_rc_map_azurewave_ad_tu700) module_init(init_rc_map_azurewave_ad_tu700)
......
...@@ -82,7 +82,7 @@ static struct rc_map_table behold_columbus[] = { ...@@ -82,7 +82,7 @@ static struct rc_map_table behold_columbus[] = {
}; };
static struct rc_keymap behold_columbus_map = { static struct rc_map_list behold_columbus_map = {
.map = { .map = {
.scan = behold_columbus, .scan = behold_columbus,
.size = ARRAY_SIZE(behold_columbus), .size = ARRAY_SIZE(behold_columbus),
...@@ -93,12 +93,12 @@ static struct rc_keymap behold_columbus_map = { ...@@ -93,12 +93,12 @@ static struct rc_keymap behold_columbus_map = {
static int __init init_rc_map_behold_columbus(void) static int __init init_rc_map_behold_columbus(void)
{ {
return ir_register_map(&behold_columbus_map); return rc_map_register(&behold_columbus_map);
} }
static void __exit exit_rc_map_behold_columbus(void) static void __exit exit_rc_map_behold_columbus(void)
{ {
ir_unregister_map(&behold_columbus_map); rc_map_unregister(&behold_columbus_map);
} }
module_init(init_rc_map_behold_columbus) module_init(init_rc_map_behold_columbus)
......
...@@ -115,7 +115,7 @@ static struct rc_map_table behold[] = { ...@@ -115,7 +115,7 @@ static struct rc_map_table behold[] = {
}; };
static struct rc_keymap behold_map = { static struct rc_map_list behold_map = {
.map = { .map = {
.scan = behold, .scan = behold,
.size = ARRAY_SIZE(behold), .size = ARRAY_SIZE(behold),
...@@ -126,12 +126,12 @@ static struct rc_keymap behold_map = { ...@@ -126,12 +126,12 @@ static struct rc_keymap behold_map = {
static int __init init_rc_map_behold(void) static int __init init_rc_map_behold(void)
{ {
return ir_register_map(&behold_map); return rc_map_register(&behold_map);
} }
static void __exit exit_rc_map_behold(void) static void __exit exit_rc_map_behold(void)
{ {
ir_unregister_map(&behold_map); rc_map_unregister(&behold_map);
} }
module_init(init_rc_map_behold) module_init(init_rc_map_behold)
......
...@@ -66,7 +66,7 @@ static struct rc_map_table budget_ci_old[] = { ...@@ -66,7 +66,7 @@ static struct rc_map_table budget_ci_old[] = {
{ 0x3e, KEY_TUNER }, { 0x3e, KEY_TUNER },
}; };
static struct rc_keymap budget_ci_old_map = { static struct rc_map_list budget_ci_old_map = {
.map = { .map = {
.scan = budget_ci_old, .scan = budget_ci_old,
.size = ARRAY_SIZE(budget_ci_old), .size = ARRAY_SIZE(budget_ci_old),
...@@ -77,12 +77,12 @@ static struct rc_keymap budget_ci_old_map = { ...@@ -77,12 +77,12 @@ static struct rc_keymap budget_ci_old_map = {
static int __init init_rc_map_budget_ci_old(void) static int __init init_rc_map_budget_ci_old(void)
{ {
return ir_register_map(&budget_ci_old_map); return rc_map_register(&budget_ci_old_map);
} }
static void __exit exit_rc_map_budget_ci_old(void) static void __exit exit_rc_map_budget_ci_old(void)
{ {
ir_unregister_map(&budget_ci_old_map); rc_map_unregister(&budget_ci_old_map);
} }
module_init(init_rc_map_budget_ci_old) module_init(init_rc_map_budget_ci_old)
......
...@@ -58,7 +58,7 @@ static struct rc_map_table cinergy_1400[] = { ...@@ -58,7 +58,7 @@ static struct rc_map_table cinergy_1400[] = {
{ 0x5c, KEY_NEXT }, { 0x5c, KEY_NEXT },
}; };
static struct rc_keymap cinergy_1400_map = { static struct rc_map_list cinergy_1400_map = {
.map = { .map = {
.scan = cinergy_1400, .scan = cinergy_1400,
.size = ARRAY_SIZE(cinergy_1400), .size = ARRAY_SIZE(cinergy_1400),
...@@ -69,12 +69,12 @@ static struct rc_keymap cinergy_1400_map = { ...@@ -69,12 +69,12 @@ static struct rc_keymap cinergy_1400_map = {
static int __init init_rc_map_cinergy_1400(void) static int __init init_rc_map_cinergy_1400(void)
{ {
return ir_register_map(&cinergy_1400_map); return rc_map_register(&cinergy_1400_map);
} }
static void __exit exit_rc_map_cinergy_1400(void) static void __exit exit_rc_map_cinergy_1400(void)
{ {
ir_unregister_map(&cinergy_1400_map); rc_map_unregister(&cinergy_1400_map);
} }
module_init(init_rc_map_cinergy_1400) module_init(init_rc_map_cinergy_1400)
......
...@@ -52,7 +52,7 @@ static struct rc_map_table cinergy[] = { ...@@ -52,7 +52,7 @@ static struct rc_map_table cinergy[] = {
{ 0x23, KEY_STOP }, { 0x23, KEY_STOP },
}; };
static struct rc_keymap cinergy_map = { static struct rc_map_list cinergy_map = {
.map = { .map = {
.scan = cinergy, .scan = cinergy,
.size = ARRAY_SIZE(cinergy), .size = ARRAY_SIZE(cinergy),
...@@ -63,12 +63,12 @@ static struct rc_keymap cinergy_map = { ...@@ -63,12 +63,12 @@ static struct rc_keymap cinergy_map = {
static int __init init_rc_map_cinergy(void) static int __init init_rc_map_cinergy(void)
{ {
return ir_register_map(&cinergy_map); return rc_map_register(&cinergy_map);
} }
static void __exit exit_rc_map_cinergy(void) static void __exit exit_rc_map_cinergy(void)
{ {
ir_unregister_map(&cinergy_map); rc_map_unregister(&cinergy_map);
} }
module_init(init_rc_map_cinergy) module_init(init_rc_map_cinergy)
......
...@@ -98,7 +98,7 @@ static struct rc_map_table dib0700_nec_table[] = { ...@@ -98,7 +98,7 @@ static struct rc_map_table dib0700_nec_table[] = {
{ 0x4542, KEY_SELECT }, /* Select video input, 'Select' for Teletext */ { 0x4542, KEY_SELECT }, /* Select video input, 'Select' for Teletext */
}; };
static struct rc_keymap dib0700_nec_map = { static struct rc_map_list dib0700_nec_map = {
.map = { .map = {
.scan = dib0700_nec_table, .scan = dib0700_nec_table,
.size = ARRAY_SIZE(dib0700_nec_table), .size = ARRAY_SIZE(dib0700_nec_table),
...@@ -109,12 +109,12 @@ static struct rc_keymap dib0700_nec_map = { ...@@ -109,12 +109,12 @@ static struct rc_keymap dib0700_nec_map = {
static int __init init_rc_map(void) static int __init init_rc_map(void)
{ {
return ir_register_map(&dib0700_nec_map); return rc_map_register(&dib0700_nec_map);
} }
static void __exit exit_rc_map(void) static void __exit exit_rc_map(void)
{ {
ir_unregister_map(&dib0700_nec_map); rc_map_unregister(&dib0700_nec_map);
} }
module_init(init_rc_map) module_init(init_rc_map)
......
...@@ -209,7 +209,7 @@ static struct rc_map_table dib0700_rc5_table[] = { ...@@ -209,7 +209,7 @@ static struct rc_map_table dib0700_rc5_table[] = {
{ 0x1d3d, KEY_POWER }, { 0x1d3d, KEY_POWER },
}; };
static struct rc_keymap dib0700_rc5_map = { static struct rc_map_list dib0700_rc5_map = {
.map = { .map = {
.scan = dib0700_rc5_table, .scan = dib0700_rc5_table,
.size = ARRAY_SIZE(dib0700_rc5_table), .size = ARRAY_SIZE(dib0700_rc5_table),
...@@ -220,12 +220,12 @@ static struct rc_keymap dib0700_rc5_map = { ...@@ -220,12 +220,12 @@ static struct rc_keymap dib0700_rc5_map = {
static int __init init_rc_map(void) static int __init init_rc_map(void)
{ {
return ir_register_map(&dib0700_rc5_map); return rc_map_register(&dib0700_rc5_map);
} }
static void __exit exit_rc_map(void) static void __exit exit_rc_map(void)
{ {
ir_unregister_map(&dib0700_rc5_map); rc_map_unregister(&dib0700_rc5_map);
} }
module_init(init_rc_map) module_init(init_rc_map)
......
...@@ -72,7 +72,7 @@ static struct rc_map_table digitalnow_tinytwin[] = { ...@@ -72,7 +72,7 @@ static struct rc_map_table digitalnow_tinytwin[] = {
{ 0x005a, KEY_PREVIOUS }, /* REPLAY */ { 0x005a, KEY_PREVIOUS }, /* REPLAY */
}; };
static struct rc_keymap digitalnow_tinytwin_map = { static struct rc_map_list digitalnow_tinytwin_map = {
.map = { .map = {
.scan = digitalnow_tinytwin, .scan = digitalnow_tinytwin,
.size = ARRAY_SIZE(digitalnow_tinytwin), .size = ARRAY_SIZE(digitalnow_tinytwin),
...@@ -83,12 +83,12 @@ static struct rc_keymap digitalnow_tinytwin_map = { ...@@ -83,12 +83,12 @@ static struct rc_keymap digitalnow_tinytwin_map = {
static int __init init_rc_map_digitalnow_tinytwin(void) static int __init init_rc_map_digitalnow_tinytwin(void)
{ {
return ir_register_map(&digitalnow_tinytwin_map); return rc_map_register(&digitalnow_tinytwin_map);
} }
static void __exit exit_rc_map_digitalnow_tinytwin(void) static void __exit exit_rc_map_digitalnow_tinytwin(void)
{ {
ir_unregister_map(&digitalnow_tinytwin_map); rc_map_unregister(&digitalnow_tinytwin_map);
} }
module_init(init_rc_map_digitalnow_tinytwin) module_init(init_rc_map_digitalnow_tinytwin)
......
...@@ -56,7 +56,7 @@ static struct rc_map_table digittrade[] = { ...@@ -56,7 +56,7 @@ static struct rc_map_table digittrade[] = {
{ 0x0054, KEY_0 }, { 0x0054, KEY_0 },
}; };
static struct rc_keymap digittrade_map = { static struct rc_map_list digittrade_map = {
.map = { .map = {
.scan = digittrade, .scan = digittrade,
.size = ARRAY_SIZE(digittrade), .size = ARRAY_SIZE(digittrade),
...@@ -67,12 +67,12 @@ static struct rc_keymap digittrade_map = { ...@@ -67,12 +67,12 @@ static struct rc_keymap digittrade_map = {
static int __init init_rc_map_digittrade(void) static int __init init_rc_map_digittrade(void)
{ {
return ir_register_map(&digittrade_map); return rc_map_register(&digittrade_map);
} }
static void __exit exit_rc_map_digittrade(void) static void __exit exit_rc_map_digittrade(void)
{ {
ir_unregister_map(&digittrade_map); rc_map_unregister(&digittrade_map);
} }
module_init(init_rc_map_digittrade) module_init(init_rc_map_digittrade)
......
...@@ -50,7 +50,7 @@ static struct rc_map_table dm1105_nec[] = { ...@@ -50,7 +50,7 @@ static struct rc_map_table dm1105_nec[] = {
{ 0x1b, KEY_B}, /* recall */ { 0x1b, KEY_B}, /* recall */
}; };
static struct rc_keymap dm1105_nec_map = { static struct rc_map_list dm1105_nec_map = {
.map = { .map = {
.scan = dm1105_nec, .scan = dm1105_nec,
.size = ARRAY_SIZE(dm1105_nec), .size = ARRAY_SIZE(dm1105_nec),
...@@ -61,12 +61,12 @@ static struct rc_keymap dm1105_nec_map = { ...@@ -61,12 +61,12 @@ static struct rc_keymap dm1105_nec_map = {
static int __init init_rc_map_dm1105_nec(void) static int __init init_rc_map_dm1105_nec(void)
{ {
return ir_register_map(&dm1105_nec_map); return rc_map_register(&dm1105_nec_map);
} }
static void __exit exit_rc_map_dm1105_nec(void) static void __exit exit_rc_map_dm1105_nec(void)
{ {
ir_unregister_map(&dm1105_nec_map); rc_map_unregister(&dm1105_nec_map);
} }
module_init(init_rc_map_dm1105_nec) module_init(init_rc_map_dm1105_nec)
......
...@@ -52,7 +52,7 @@ static struct rc_map_table dntv_live_dvb_t[] = { ...@@ -52,7 +52,7 @@ static struct rc_map_table dntv_live_dvb_t[] = {
{ 0x1f, KEY_VOLUMEDOWN }, { 0x1f, KEY_VOLUMEDOWN },
}; };
static struct rc_keymap dntv_live_dvb_t_map = { static struct rc_map_list dntv_live_dvb_t_map = {
.map = { .map = {
.scan = dntv_live_dvb_t, .scan = dntv_live_dvb_t,
.size = ARRAY_SIZE(dntv_live_dvb_t), .size = ARRAY_SIZE(dntv_live_dvb_t),
...@@ -63,12 +63,12 @@ static struct rc_keymap dntv_live_dvb_t_map = { ...@@ -63,12 +63,12 @@ static struct rc_keymap dntv_live_dvb_t_map = {
static int __init init_rc_map_dntv_live_dvb_t(void) static int __init init_rc_map_dntv_live_dvb_t(void)
{ {
return ir_register_map(&dntv_live_dvb_t_map); return rc_map_register(&dntv_live_dvb_t_map);
} }
static void __exit exit_rc_map_dntv_live_dvb_t(void) static void __exit exit_rc_map_dntv_live_dvb_t(void)
{ {
ir_unregister_map(&dntv_live_dvb_t_map); rc_map_unregister(&dntv_live_dvb_t_map);
} }
module_init(init_rc_map_dntv_live_dvb_t) module_init(init_rc_map_dntv_live_dvb_t)
......
...@@ -71,7 +71,7 @@ static struct rc_map_table dntv_live_dvbt_pro[] = { ...@@ -71,7 +71,7 @@ static struct rc_map_table dntv_live_dvbt_pro[] = {
{ 0x5d, KEY_BLUE }, { 0x5d, KEY_BLUE },
}; };
static struct rc_keymap dntv_live_dvbt_pro_map = { static struct rc_map_list dntv_live_dvbt_pro_map = {
.map = { .map = {
.scan = dntv_live_dvbt_pro, .scan = dntv_live_dvbt_pro,
.size = ARRAY_SIZE(dntv_live_dvbt_pro), .size = ARRAY_SIZE(dntv_live_dvbt_pro),
...@@ -82,12 +82,12 @@ static struct rc_keymap dntv_live_dvbt_pro_map = { ...@@ -82,12 +82,12 @@ static struct rc_keymap dntv_live_dvbt_pro_map = {
static int __init init_rc_map_dntv_live_dvbt_pro(void) static int __init init_rc_map_dntv_live_dvbt_pro(void)
{ {
return ir_register_map(&dntv_live_dvbt_pro_map); return rc_map_register(&dntv_live_dvbt_pro_map);
} }
static void __exit exit_rc_map_dntv_live_dvbt_pro(void) static void __exit exit_rc_map_dntv_live_dvbt_pro(void)
{ {
ir_unregister_map(&dntv_live_dvbt_pro_map); rc_map_unregister(&dntv_live_dvbt_pro_map);
} }
module_init(init_rc_map_dntv_live_dvbt_pro) module_init(init_rc_map_dntv_live_dvbt_pro)
......
...@@ -43,7 +43,7 @@ static struct rc_map_table em_terratec[] = { ...@@ -43,7 +43,7 @@ static struct rc_map_table em_terratec[] = {
{ 0x40, KEY_ZOOM }, { 0x40, KEY_ZOOM },
}; };
static struct rc_keymap em_terratec_map = { static struct rc_map_list em_terratec_map = {
.map = { .map = {
.scan = em_terratec, .scan = em_terratec,
.size = ARRAY_SIZE(em_terratec), .size = ARRAY_SIZE(em_terratec),
...@@ -54,12 +54,12 @@ static struct rc_keymap em_terratec_map = { ...@@ -54,12 +54,12 @@ static struct rc_keymap em_terratec_map = {
static int __init init_rc_map_em_terratec(void) static int __init init_rc_map_em_terratec(void)
{ {
return ir_register_map(&em_terratec_map); return rc_map_register(&em_terratec_map);
} }
static void __exit exit_rc_map_em_terratec(void) static void __exit exit_rc_map_em_terratec(void)
{ {
ir_unregister_map(&em_terratec_map); rc_map_unregister(&em_terratec_map);
} }
module_init(init_rc_map_em_terratec) module_init(init_rc_map_em_terratec)
......
...@@ -55,7 +55,7 @@ static struct rc_map_table encore_enltv_fm53[] = { ...@@ -55,7 +55,7 @@ static struct rc_map_table encore_enltv_fm53[] = {
{ 0x47, KEY_SLEEP}, /* shutdown */ { 0x47, KEY_SLEEP}, /* shutdown */
}; };
static struct rc_keymap encore_enltv_fm53_map = { static struct rc_map_list encore_enltv_fm53_map = {
.map = { .map = {
.scan = encore_enltv_fm53, .scan = encore_enltv_fm53,
.size = ARRAY_SIZE(encore_enltv_fm53), .size = ARRAY_SIZE(encore_enltv_fm53),
...@@ -66,12 +66,12 @@ static struct rc_keymap encore_enltv_fm53_map = { ...@@ -66,12 +66,12 @@ static struct rc_keymap encore_enltv_fm53_map = {
static int __init init_rc_map_encore_enltv_fm53(void) static int __init init_rc_map_encore_enltv_fm53(void)
{ {
return ir_register_map(&encore_enltv_fm53_map); return rc_map_register(&encore_enltv_fm53_map);
} }
static void __exit exit_rc_map_encore_enltv_fm53(void) static void __exit exit_rc_map_encore_enltv_fm53(void)
{ {
ir_unregister_map(&encore_enltv_fm53_map); rc_map_unregister(&encore_enltv_fm53_map);
} }
module_init(init_rc_map_encore_enltv_fm53) module_init(init_rc_map_encore_enltv_fm53)
......
...@@ -86,7 +86,7 @@ static struct rc_map_table encore_enltv[] = { ...@@ -86,7 +86,7 @@ static struct rc_map_table encore_enltv[] = {
{ 0x57, KEY_BLUE }, /* AP4 */ { 0x57, KEY_BLUE }, /* AP4 */
}; };
static struct rc_keymap encore_enltv_map = { static struct rc_map_list encore_enltv_map = {
.map = { .map = {
.scan = encore_enltv, .scan = encore_enltv,
.size = ARRAY_SIZE(encore_enltv), .size = ARRAY_SIZE(encore_enltv),
...@@ -97,12 +97,12 @@ static struct rc_keymap encore_enltv_map = { ...@@ -97,12 +97,12 @@ static struct rc_keymap encore_enltv_map = {
static int __init init_rc_map_encore_enltv(void) static int __init init_rc_map_encore_enltv(void)
{ {
return ir_register_map(&encore_enltv_map); return rc_map_register(&encore_enltv_map);
} }
static void __exit exit_rc_map_encore_enltv(void) static void __exit exit_rc_map_encore_enltv(void)
{ {
ir_unregister_map(&encore_enltv_map); rc_map_unregister(&encore_enltv_map);
} }
module_init(init_rc_map_encore_enltv) module_init(init_rc_map_encore_enltv)
......
...@@ -64,7 +64,7 @@ static struct rc_map_table encore_enltv2[] = { ...@@ -64,7 +64,7 @@ static struct rc_map_table encore_enltv2[] = {
{ 0x79, KEY_STOP }, { 0x79, KEY_STOP },
}; };
static struct rc_keymap encore_enltv2_map = { static struct rc_map_list encore_enltv2_map = {
.map = { .map = {
.scan = encore_enltv2, .scan = encore_enltv2,
.size = ARRAY_SIZE(encore_enltv2), .size = ARRAY_SIZE(encore_enltv2),
...@@ -75,12 +75,12 @@ static struct rc_keymap encore_enltv2_map = { ...@@ -75,12 +75,12 @@ static struct rc_keymap encore_enltv2_map = {
static int __init init_rc_map_encore_enltv2(void) static int __init init_rc_map_encore_enltv2(void)
{ {
return ir_register_map(&encore_enltv2_map); return rc_map_register(&encore_enltv2_map);
} }
static void __exit exit_rc_map_encore_enltv2(void) static void __exit exit_rc_map_encore_enltv2(void)
{ {
ir_unregister_map(&encore_enltv2_map); rc_map_unregister(&encore_enltv2_map);
} }
module_init(init_rc_map_encore_enltv2) module_init(init_rc_map_encore_enltv2)
......
...@@ -35,7 +35,7 @@ static struct rc_map_table evga_indtube[] = { ...@@ -35,7 +35,7 @@ static struct rc_map_table evga_indtube[] = {
{ 0x13, KEY_CAMERA}, { 0x13, KEY_CAMERA},
}; };
static struct rc_keymap evga_indtube_map = { static struct rc_map_list evga_indtube_map = {
.map = { .map = {
.scan = evga_indtube, .scan = evga_indtube,
.size = ARRAY_SIZE(evga_indtube), .size = ARRAY_SIZE(evga_indtube),
...@@ -46,12 +46,12 @@ static struct rc_keymap evga_indtube_map = { ...@@ -46,12 +46,12 @@ static struct rc_keymap evga_indtube_map = {
static int __init init_rc_map_evga_indtube(void) static int __init init_rc_map_evga_indtube(void)
{ {
return ir_register_map(&evga_indtube_map); return rc_map_register(&evga_indtube_map);
} }
static void __exit exit_rc_map_evga_indtube(void) static void __exit exit_rc_map_evga_indtube(void)
{ {
ir_unregister_map(&evga_indtube_map); rc_map_unregister(&evga_indtube_map);
} }
module_init(init_rc_map_evga_indtube) module_init(init_rc_map_evga_indtube)
......
...@@ -70,7 +70,7 @@ static struct rc_map_table eztv[] = { ...@@ -70,7 +70,7 @@ static struct rc_map_table eztv[] = {
{ 0x21, KEY_DOT }, /* . (decimal dot) */ { 0x21, KEY_DOT }, /* . (decimal dot) */
}; };
static struct rc_keymap eztv_map = { static struct rc_map_list eztv_map = {
.map = { .map = {
.scan = eztv, .scan = eztv,
.size = ARRAY_SIZE(eztv), .size = ARRAY_SIZE(eztv),
...@@ -81,12 +81,12 @@ static struct rc_keymap eztv_map = { ...@@ -81,12 +81,12 @@ static struct rc_keymap eztv_map = {
static int __init init_rc_map_eztv(void) static int __init init_rc_map_eztv(void)
{ {
return ir_register_map(&eztv_map); return rc_map_register(&eztv_map);
} }
static void __exit exit_rc_map_eztv(void) static void __exit exit_rc_map_eztv(void)
{ {
ir_unregister_map(&eztv_map); rc_map_unregister(&eztv_map);
} }
module_init(init_rc_map_eztv) module_init(init_rc_map_eztv)
......
...@@ -51,7 +51,7 @@ static struct rc_map_table flydvb[] = { ...@@ -51,7 +51,7 @@ static struct rc_map_table flydvb[] = {
{ 0x0e, KEY_NEXT }, /* End >>| */ { 0x0e, KEY_NEXT }, /* End >>| */
}; };
static struct rc_keymap flydvb_map = { static struct rc_map_list flydvb_map = {
.map = { .map = {
.scan = flydvb, .scan = flydvb,
.size = ARRAY_SIZE(flydvb), .size = ARRAY_SIZE(flydvb),
...@@ -62,12 +62,12 @@ static struct rc_keymap flydvb_map = { ...@@ -62,12 +62,12 @@ static struct rc_keymap flydvb_map = {
static int __init init_rc_map_flydvb(void) static int __init init_rc_map_flydvb(void)
{ {
return ir_register_map(&flydvb_map); return rc_map_register(&flydvb_map);
} }
static void __exit exit_rc_map_flydvb(void) static void __exit exit_rc_map_flydvb(void)
{ {
ir_unregister_map(&flydvb_map); rc_map_unregister(&flydvb_map);
} }
module_init(init_rc_map_flydvb) module_init(init_rc_map_flydvb)
......
...@@ -44,7 +44,7 @@ static struct rc_map_table flyvideo[] = { ...@@ -44,7 +44,7 @@ static struct rc_map_table flyvideo[] = {
{ 0x0a, KEY_ANGLE }, /* no label, may be used as the PAUSE button */ { 0x0a, KEY_ANGLE }, /* no label, may be used as the PAUSE button */
}; };
static struct rc_keymap flyvideo_map = { static struct rc_map_list flyvideo_map = {
.map = { .map = {
.scan = flyvideo, .scan = flyvideo,
.size = ARRAY_SIZE(flyvideo), .size = ARRAY_SIZE(flyvideo),
...@@ -55,12 +55,12 @@ static struct rc_keymap flyvideo_map = { ...@@ -55,12 +55,12 @@ static struct rc_keymap flyvideo_map = {
static int __init init_rc_map_flyvideo(void) static int __init init_rc_map_flyvideo(void)
{ {
return ir_register_map(&flyvideo_map); return rc_map_register(&flyvideo_map);
} }
static void __exit exit_rc_map_flyvideo(void) static void __exit exit_rc_map_flyvideo(void)
{ {
ir_unregister_map(&flyvideo_map); rc_map_unregister(&flyvideo_map);
} }
module_init(init_rc_map_flyvideo) module_init(init_rc_map_flyvideo)
......
...@@ -72,7 +72,7 @@ static struct rc_map_table fusionhdtv_mce[] = { ...@@ -72,7 +72,7 @@ static struct rc_map_table fusionhdtv_mce[] = {
{ 0x4e, KEY_POWER }, { 0x4e, KEY_POWER },
}; };
static struct rc_keymap fusionhdtv_mce_map = { static struct rc_map_list fusionhdtv_mce_map = {
.map = { .map = {
.scan = fusionhdtv_mce, .scan = fusionhdtv_mce,
.size = ARRAY_SIZE(fusionhdtv_mce), .size = ARRAY_SIZE(fusionhdtv_mce),
...@@ -83,12 +83,12 @@ static struct rc_keymap fusionhdtv_mce_map = { ...@@ -83,12 +83,12 @@ static struct rc_keymap fusionhdtv_mce_map = {
static int __init init_rc_map_fusionhdtv_mce(void) static int __init init_rc_map_fusionhdtv_mce(void)
{ {
return ir_register_map(&fusionhdtv_mce_map); return rc_map_register(&fusionhdtv_mce_map);
} }
static void __exit exit_rc_map_fusionhdtv_mce(void) static void __exit exit_rc_map_fusionhdtv_mce(void)
{ {
ir_unregister_map(&fusionhdtv_mce_map); rc_map_unregister(&fusionhdtv_mce_map);
} }
module_init(init_rc_map_fusionhdtv_mce) module_init(init_rc_map_fusionhdtv_mce)
......
...@@ -55,7 +55,7 @@ static struct rc_map_table gadmei_rm008z[] = { ...@@ -55,7 +55,7 @@ static struct rc_map_table gadmei_rm008z[] = {
{ 0x15, KEY_ENTER}, /* OK */ { 0x15, KEY_ENTER}, /* OK */
}; };
static struct rc_keymap gadmei_rm008z_map = { static struct rc_map_list gadmei_rm008z_map = {
.map = { .map = {
.scan = gadmei_rm008z, .scan = gadmei_rm008z,
.size = ARRAY_SIZE(gadmei_rm008z), .size = ARRAY_SIZE(gadmei_rm008z),
...@@ -66,12 +66,12 @@ static struct rc_keymap gadmei_rm008z_map = { ...@@ -66,12 +66,12 @@ static struct rc_keymap gadmei_rm008z_map = {
static int __init init_rc_map_gadmei_rm008z(void) static int __init init_rc_map_gadmei_rm008z(void)
{ {
return ir_register_map(&gadmei_rm008z_map); return rc_map_register(&gadmei_rm008z_map);
} }
static void __exit exit_rc_map_gadmei_rm008z(void) static void __exit exit_rc_map_gadmei_rm008z(void)
{ {
ir_unregister_map(&gadmei_rm008z_map); rc_map_unregister(&gadmei_rm008z_map);
} }
module_init(init_rc_map_gadmei_rm008z) module_init(init_rc_map_gadmei_rm008z)
......
...@@ -58,7 +58,7 @@ static struct rc_map_table genius_tvgo_a11mce[] = { ...@@ -58,7 +58,7 @@ static struct rc_map_table genius_tvgo_a11mce[] = {
{ 0x50, KEY_BLUE }, { 0x50, KEY_BLUE },
}; };
static struct rc_keymap genius_tvgo_a11mce_map = { static struct rc_map_list genius_tvgo_a11mce_map = {
.map = { .map = {
.scan = genius_tvgo_a11mce, .scan = genius_tvgo_a11mce,
.size = ARRAY_SIZE(genius_tvgo_a11mce), .size = ARRAY_SIZE(genius_tvgo_a11mce),
...@@ -69,12 +69,12 @@ static struct rc_keymap genius_tvgo_a11mce_map = { ...@@ -69,12 +69,12 @@ static struct rc_keymap genius_tvgo_a11mce_map = {
static int __init init_rc_map_genius_tvgo_a11mce(void) static int __init init_rc_map_genius_tvgo_a11mce(void)
{ {
return ir_register_map(&genius_tvgo_a11mce_map); return rc_map_register(&genius_tvgo_a11mce_map);
} }
static void __exit exit_rc_map_genius_tvgo_a11mce(void) static void __exit exit_rc_map_genius_tvgo_a11mce(void)
{ {
ir_unregister_map(&genius_tvgo_a11mce_map); rc_map_unregister(&genius_tvgo_a11mce_map);
} }
module_init(init_rc_map_genius_tvgo_a11mce) module_init(init_rc_map_genius_tvgo_a11mce)
......
...@@ -53,7 +53,7 @@ static struct rc_map_table gotview7135[] = { ...@@ -53,7 +53,7 @@ static struct rc_map_table gotview7135[] = {
{ 0x38, KEY_F24 }, /* NORMAL TIMESHIFT */ { 0x38, KEY_F24 }, /* NORMAL TIMESHIFT */
}; };
static struct rc_keymap gotview7135_map = { static struct rc_map_list gotview7135_map = {
.map = { .map = {
.scan = gotview7135, .scan = gotview7135,
.size = ARRAY_SIZE(gotview7135), .size = ARRAY_SIZE(gotview7135),
...@@ -64,12 +64,12 @@ static struct rc_keymap gotview7135_map = { ...@@ -64,12 +64,12 @@ static struct rc_keymap gotview7135_map = {
static int __init init_rc_map_gotview7135(void) static int __init init_rc_map_gotview7135(void)
{ {
return ir_register_map(&gotview7135_map); return rc_map_register(&gotview7135_map);
} }
static void __exit exit_rc_map_gotview7135(void) static void __exit exit_rc_map_gotview7135(void)
{ {
ir_unregister_map(&gotview7135_map); rc_map_unregister(&gotview7135_map);
} }
module_init(init_rc_map_gotview7135) module_init(init_rc_map_gotview7135)
......
...@@ -74,7 +74,7 @@ static struct rc_map_table hauppauge_new[] = { ...@@ -74,7 +74,7 @@ static struct rc_map_table hauppauge_new[] = {
{ 0x3d, KEY_POWER }, /* system power (green button) */ { 0x3d, KEY_POWER }, /* system power (green button) */
}; };
static struct rc_keymap hauppauge_new_map = { static struct rc_map_list hauppauge_new_map = {
.map = { .map = {
.scan = hauppauge_new, .scan = hauppauge_new,
.size = ARRAY_SIZE(hauppauge_new), .size = ARRAY_SIZE(hauppauge_new),
...@@ -85,12 +85,12 @@ static struct rc_keymap hauppauge_new_map = { ...@@ -85,12 +85,12 @@ static struct rc_keymap hauppauge_new_map = {
static int __init init_rc_map_hauppauge_new(void) static int __init init_rc_map_hauppauge_new(void)
{ {
return ir_register_map(&hauppauge_new_map); return rc_map_register(&hauppauge_new_map);
} }
static void __exit exit_rc_map_hauppauge_new(void) static void __exit exit_rc_map_hauppauge_new(void)
{ {
ir_unregister_map(&hauppauge_new_map); rc_map_unregister(&hauppauge_new_map);
} }
module_init(init_rc_map_hauppauge_new) module_init(init_rc_map_hauppauge_new)
......
...@@ -115,7 +115,7 @@ static struct rc_map_table imon_mce[] = { ...@@ -115,7 +115,7 @@ static struct rc_map_table imon_mce[] = {
}; };
static struct rc_keymap imon_mce_map = { static struct rc_map_list imon_mce_map = {
.map = { .map = {
.scan = imon_mce, .scan = imon_mce,
.size = ARRAY_SIZE(imon_mce), .size = ARRAY_SIZE(imon_mce),
...@@ -127,12 +127,12 @@ static struct rc_keymap imon_mce_map = { ...@@ -127,12 +127,12 @@ static struct rc_keymap imon_mce_map = {
static int __init init_rc_map_imon_mce(void) static int __init init_rc_map_imon_mce(void)
{ {
return ir_register_map(&imon_mce_map); return rc_map_register(&imon_mce_map);
} }
static void __exit exit_rc_map_imon_mce(void) static void __exit exit_rc_map_imon_mce(void)
{ {
ir_unregister_map(&imon_mce_map); rc_map_unregister(&imon_mce_map);
} }
module_init(init_rc_map_imon_mce) module_init(init_rc_map_imon_mce)
......
...@@ -129,7 +129,7 @@ static struct rc_map_table imon_pad[] = { ...@@ -129,7 +129,7 @@ static struct rc_map_table imon_pad[] = {
{ 0x29b715b7, KEY_DASHBOARD }, /* AppLauncher */ { 0x29b715b7, KEY_DASHBOARD }, /* AppLauncher */
}; };
static struct rc_keymap imon_pad_map = { static struct rc_map_list imon_pad_map = {
.map = { .map = {
.scan = imon_pad, .scan = imon_pad,
.size = ARRAY_SIZE(imon_pad), .size = ARRAY_SIZE(imon_pad),
...@@ -141,12 +141,12 @@ static struct rc_keymap imon_pad_map = { ...@@ -141,12 +141,12 @@ static struct rc_keymap imon_pad_map = {
static int __init init_rc_map_imon_pad(void) static int __init init_rc_map_imon_pad(void)
{ {
return ir_register_map(&imon_pad_map); return rc_map_register(&imon_pad_map);
} }
static void __exit exit_rc_map_imon_pad(void) static void __exit exit_rc_map_imon_pad(void)
{ {
ir_unregister_map(&imon_pad_map); rc_map_unregister(&imon_pad_map);
} }
module_init(init_rc_map_imon_pad) module_init(init_rc_map_imon_pad)
......
...@@ -62,7 +62,7 @@ static struct rc_map_table iodata_bctv7e[] = { ...@@ -62,7 +62,7 @@ static struct rc_map_table iodata_bctv7e[] = {
{ 0x01, KEY_NEXT }, /* skip >| */ { 0x01, KEY_NEXT }, /* skip >| */
}; };
static struct rc_keymap iodata_bctv7e_map = { static struct rc_map_list iodata_bctv7e_map = {
.map = { .map = {
.scan = iodata_bctv7e, .scan = iodata_bctv7e,
.size = ARRAY_SIZE(iodata_bctv7e), .size = ARRAY_SIZE(iodata_bctv7e),
...@@ -73,12 +73,12 @@ static struct rc_keymap iodata_bctv7e_map = { ...@@ -73,12 +73,12 @@ static struct rc_keymap iodata_bctv7e_map = {
static int __init init_rc_map_iodata_bctv7e(void) static int __init init_rc_map_iodata_bctv7e(void)
{ {
return ir_register_map(&iodata_bctv7e_map); return rc_map_register(&iodata_bctv7e_map);
} }
static void __exit exit_rc_map_iodata_bctv7e(void) static void __exit exit_rc_map_iodata_bctv7e(void)
{ {
ir_unregister_map(&iodata_bctv7e_map); rc_map_unregister(&iodata_bctv7e_map);
} }
module_init(init_rc_map_iodata_bctv7e) module_init(init_rc_map_iodata_bctv7e)
......
...@@ -61,7 +61,7 @@ static struct rc_map_table kaiomy[] = { ...@@ -61,7 +61,7 @@ static struct rc_map_table kaiomy[] = {
{ 0x1f, KEY_BLUE}, { 0x1f, KEY_BLUE},
}; };
static struct rc_keymap kaiomy_map = { static struct rc_map_list kaiomy_map = {
.map = { .map = {
.scan = kaiomy, .scan = kaiomy,
.size = ARRAY_SIZE(kaiomy), .size = ARRAY_SIZE(kaiomy),
...@@ -72,12 +72,12 @@ static struct rc_keymap kaiomy_map = { ...@@ -72,12 +72,12 @@ static struct rc_keymap kaiomy_map = {
static int __init init_rc_map_kaiomy(void) static int __init init_rc_map_kaiomy(void)
{ {
return ir_register_map(&kaiomy_map); return rc_map_register(&kaiomy_map);
} }
static void __exit exit_rc_map_kaiomy(void) static void __exit exit_rc_map_kaiomy(void)
{ {
ir_unregister_map(&kaiomy_map); rc_map_unregister(&kaiomy_map);
} }
module_init(init_rc_map_kaiomy) module_init(init_rc_map_kaiomy)
......
...@@ -57,7 +57,7 @@ static struct rc_map_table kworld_315u[] = { ...@@ -57,7 +57,7 @@ static struct rc_map_table kworld_315u[] = {
{ 0x611f, KEY_BLUE }, { 0x611f, KEY_BLUE },
}; };
static struct rc_keymap kworld_315u_map = { static struct rc_map_list kworld_315u_map = {
.map = { .map = {
.scan = kworld_315u, .scan = kworld_315u,
.size = ARRAY_SIZE(kworld_315u), .size = ARRAY_SIZE(kworld_315u),
...@@ -68,12 +68,12 @@ static struct rc_keymap kworld_315u_map = { ...@@ -68,12 +68,12 @@ static struct rc_keymap kworld_315u_map = {
static int __init init_rc_map_kworld_315u(void) static int __init init_rc_map_kworld_315u(void)
{ {
return ir_register_map(&kworld_315u_map); return rc_map_register(&kworld_315u_map);
} }
static void __exit exit_rc_map_kworld_315u(void) static void __exit exit_rc_map_kworld_315u(void)
{ {
ir_unregister_map(&kworld_315u_map); rc_map_unregister(&kworld_315u_map);
} }
module_init(init_rc_map_kworld_315u) module_init(init_rc_map_kworld_315u)
......
...@@ -73,7 +73,7 @@ static struct rc_map_table kworld_plus_tv_analog[] = { ...@@ -73,7 +73,7 @@ static struct rc_map_table kworld_plus_tv_analog[] = {
{ 0x23, KEY_GREEN}, /* C */ { 0x23, KEY_GREEN}, /* C */
}; };
static struct rc_keymap kworld_plus_tv_analog_map = { static struct rc_map_list kworld_plus_tv_analog_map = {
.map = { .map = {
.scan = kworld_plus_tv_analog, .scan = kworld_plus_tv_analog,
.size = ARRAY_SIZE(kworld_plus_tv_analog), .size = ARRAY_SIZE(kworld_plus_tv_analog),
...@@ -84,12 +84,12 @@ static struct rc_keymap kworld_plus_tv_analog_map = { ...@@ -84,12 +84,12 @@ static struct rc_keymap kworld_plus_tv_analog_map = {
static int __init init_rc_map_kworld_plus_tv_analog(void) static int __init init_rc_map_kworld_plus_tv_analog(void)
{ {
return ir_register_map(&kworld_plus_tv_analog_map); return rc_map_register(&kworld_plus_tv_analog_map);
} }
static void __exit exit_rc_map_kworld_plus_tv_analog(void) static void __exit exit_rc_map_kworld_plus_tv_analog(void)
{ {
ir_unregister_map(&kworld_plus_tv_analog_map); rc_map_unregister(&kworld_plus_tv_analog_map);
} }
module_init(init_rc_map_kworld_plus_tv_analog) module_init(init_rc_map_kworld_plus_tv_analog)
......
...@@ -73,7 +73,7 @@ static struct rc_map_table leadtek_y04g0051[] = { ...@@ -73,7 +73,7 @@ static struct rc_map_table leadtek_y04g0051[] = {
{ 0x035f, KEY_CHANNELDOWN }, { 0x035f, KEY_CHANNELDOWN },
}; };
static struct rc_keymap leadtek_y04g0051_map = { static struct rc_map_list leadtek_y04g0051_map = {
.map = { .map = {
.scan = leadtek_y04g0051, .scan = leadtek_y04g0051,
.size = ARRAY_SIZE(leadtek_y04g0051), .size = ARRAY_SIZE(leadtek_y04g0051),
...@@ -84,12 +84,12 @@ static struct rc_keymap leadtek_y04g0051_map = { ...@@ -84,12 +84,12 @@ static struct rc_keymap leadtek_y04g0051_map = {
static int __init init_rc_map_leadtek_y04g0051(void) static int __init init_rc_map_leadtek_y04g0051(void)
{ {
return ir_register_map(&leadtek_y04g0051_map); return rc_map_register(&leadtek_y04g0051_map);
} }
static void __exit exit_rc_map_leadtek_y04g0051(void) static void __exit exit_rc_map_leadtek_y04g0051(void)
{ {
ir_unregister_map(&leadtek_y04g0051_map); rc_map_unregister(&leadtek_y04g0051_map);
} }
module_init(init_rc_map_leadtek_y04g0051) module_init(init_rc_map_leadtek_y04g0051)
......
...@@ -15,7 +15,7 @@ static struct rc_map_table lirc[] = { ...@@ -15,7 +15,7 @@ static struct rc_map_table lirc[] = {
{ }, { },
}; };
static struct rc_keymap lirc_map = { static struct rc_map_list lirc_map = {
.map = { .map = {
.scan = lirc, .scan = lirc,
.size = ARRAY_SIZE(lirc), .size = ARRAY_SIZE(lirc),
...@@ -26,12 +26,12 @@ static struct rc_keymap lirc_map = { ...@@ -26,12 +26,12 @@ static struct rc_keymap lirc_map = {
static int __init init_rc_map_lirc(void) static int __init init_rc_map_lirc(void)
{ {
return ir_register_map(&lirc_map); return rc_map_register(&lirc_map);
} }
static void __exit exit_rc_map_lirc(void) static void __exit exit_rc_map_lirc(void)
{ {
ir_unregister_map(&lirc_map); rc_map_unregister(&lirc_map);
} }
module_init(init_rc_map_lirc) module_init(init_rc_map_lirc)
......
...@@ -42,7 +42,7 @@ static struct rc_map_table lme2510_rc[] = { ...@@ -42,7 +42,7 @@ static struct rc_map_table lme2510_rc[] = {
}; };
static struct rc_keymap lme2510_map = { static struct rc_map_list lme2510_map = {
.map = { .map = {
.scan = lme2510_rc, .scan = lme2510_rc,
.size = ARRAY_SIZE(lme2510_rc), .size = ARRAY_SIZE(lme2510_rc),
...@@ -53,12 +53,12 @@ static struct rc_keymap lme2510_map = { ...@@ -53,12 +53,12 @@ static struct rc_keymap lme2510_map = {
static int __init init_rc_lme2510_map(void) static int __init init_rc_lme2510_map(void)
{ {
return ir_register_map(&lme2510_map); return rc_map_register(&lme2510_map);
} }
static void __exit exit_rc_lme2510_map(void) static void __exit exit_rc_lme2510_map(void)
{ {
ir_unregister_map(&lme2510_map); rc_map_unregister(&lme2510_map);
} }
module_init(init_rc_lme2510_map) module_init(init_rc_lme2510_map)
......
...@@ -108,7 +108,7 @@ static struct rc_map_table manli[] = { ...@@ -108,7 +108,7 @@ static struct rc_map_table manli[] = {
/* 0x1d unused ? */ /* 0x1d unused ? */
}; };
static struct rc_keymap manli_map = { static struct rc_map_list manli_map = {
.map = { .map = {
.scan = manli, .scan = manli,
.size = ARRAY_SIZE(manli), .size = ARRAY_SIZE(manli),
...@@ -119,12 +119,12 @@ static struct rc_keymap manli_map = { ...@@ -119,12 +119,12 @@ static struct rc_keymap manli_map = {
static int __init init_rc_map_manli(void) static int __init init_rc_map_manli(void)
{ {
return ir_register_map(&manli_map); return rc_map_register(&manli_map);
} }
static void __exit exit_rc_map_manli(void) static void __exit exit_rc_map_manli(void)
{ {
ir_unregister_map(&manli_map); rc_map_unregister(&manli_map);
} }
module_init(init_rc_map_manli) module_init(init_rc_map_manli)
......
...@@ -41,7 +41,7 @@ static struct rc_map_table msi_digivox_ii[] = { ...@@ -41,7 +41,7 @@ static struct rc_map_table msi_digivox_ii[] = {
{ 0x001f, KEY_VOLUMEDOWN }, { 0x001f, KEY_VOLUMEDOWN },
}; };
static struct rc_keymap msi_digivox_ii_map = { static struct rc_map_list msi_digivox_ii_map = {
.map = { .map = {
.scan = msi_digivox_ii, .scan = msi_digivox_ii,
.size = ARRAY_SIZE(msi_digivox_ii), .size = ARRAY_SIZE(msi_digivox_ii),
...@@ -52,12 +52,12 @@ static struct rc_keymap msi_digivox_ii_map = { ...@@ -52,12 +52,12 @@ static struct rc_keymap msi_digivox_ii_map = {
static int __init init_rc_map_msi_digivox_ii(void) static int __init init_rc_map_msi_digivox_ii(void)
{ {
return ir_register_map(&msi_digivox_ii_map); return rc_map_register(&msi_digivox_ii_map);
} }
static void __exit exit_rc_map_msi_digivox_ii(void) static void __exit exit_rc_map_msi_digivox_ii(void)
{ {
ir_unregister_map(&msi_digivox_ii_map); rc_map_unregister(&msi_digivox_ii_map);
} }
module_init(init_rc_map_msi_digivox_ii) module_init(init_rc_map_msi_digivox_ii)
......
...@@ -59,7 +59,7 @@ static struct rc_map_table msi_digivox_iii[] = { ...@@ -59,7 +59,7 @@ static struct rc_map_table msi_digivox_iii[] = {
{ 0x61d643, KEY_POWER2 }, /* [red power button] */ { 0x61d643, KEY_POWER2 }, /* [red power button] */
}; };
static struct rc_keymap msi_digivox_iii_map = { static struct rc_map_list msi_digivox_iii_map = {
.map = { .map = {
.scan = msi_digivox_iii, .scan = msi_digivox_iii,
.size = ARRAY_SIZE(msi_digivox_iii), .size = ARRAY_SIZE(msi_digivox_iii),
...@@ -70,12 +70,12 @@ static struct rc_keymap msi_digivox_iii_map = { ...@@ -70,12 +70,12 @@ static struct rc_keymap msi_digivox_iii_map = {
static int __init init_rc_map_msi_digivox_iii(void) static int __init init_rc_map_msi_digivox_iii(void)
{ {
return ir_register_map(&msi_digivox_iii_map); return rc_map_register(&msi_digivox_iii_map);
} }
static void __exit exit_rc_map_msi_digivox_iii(void) static void __exit exit_rc_map_msi_digivox_iii(void)
{ {
ir_unregister_map(&msi_digivox_iii_map); rc_map_unregister(&msi_digivox_iii_map);
} }
module_init(init_rc_map_msi_digivox_iii) module_init(init_rc_map_msi_digivox_iii)
......
...@@ -97,7 +97,7 @@ static struct rc_map_table msi_tvanywhere_plus[] = { ...@@ -97,7 +97,7 @@ static struct rc_map_table msi_tvanywhere_plus[] = {
{ 0x1d, KEY_RESTART }, /* Reset */ { 0x1d, KEY_RESTART }, /* Reset */
}; };
static struct rc_keymap msi_tvanywhere_plus_map = { static struct rc_map_list msi_tvanywhere_plus_map = {
.map = { .map = {
.scan = msi_tvanywhere_plus, .scan = msi_tvanywhere_plus,
.size = ARRAY_SIZE(msi_tvanywhere_plus), .size = ARRAY_SIZE(msi_tvanywhere_plus),
...@@ -108,12 +108,12 @@ static struct rc_keymap msi_tvanywhere_plus_map = { ...@@ -108,12 +108,12 @@ static struct rc_keymap msi_tvanywhere_plus_map = {
static int __init init_rc_map_msi_tvanywhere_plus(void) static int __init init_rc_map_msi_tvanywhere_plus(void)
{ {
return ir_register_map(&msi_tvanywhere_plus_map); return rc_map_register(&msi_tvanywhere_plus_map);
} }
static void __exit exit_rc_map_msi_tvanywhere_plus(void) static void __exit exit_rc_map_msi_tvanywhere_plus(void)
{ {
ir_unregister_map(&msi_tvanywhere_plus_map); rc_map_unregister(&msi_tvanywhere_plus_map);
} }
module_init(init_rc_map_msi_tvanywhere_plus) module_init(init_rc_map_msi_tvanywhere_plus)
......
...@@ -43,7 +43,7 @@ static struct rc_map_table msi_tvanywhere[] = { ...@@ -43,7 +43,7 @@ static struct rc_map_table msi_tvanywhere[] = {
{ 0x1f, KEY_VOLUMEDOWN }, { 0x1f, KEY_VOLUMEDOWN },
}; };
static struct rc_keymap msi_tvanywhere_map = { static struct rc_map_list msi_tvanywhere_map = {
.map = { .map = {
.scan = msi_tvanywhere, .scan = msi_tvanywhere,
.size = ARRAY_SIZE(msi_tvanywhere), .size = ARRAY_SIZE(msi_tvanywhere),
...@@ -54,12 +54,12 @@ static struct rc_keymap msi_tvanywhere_map = { ...@@ -54,12 +54,12 @@ static struct rc_keymap msi_tvanywhere_map = {
static int __init init_rc_map_msi_tvanywhere(void) static int __init init_rc_map_msi_tvanywhere(void)
{ {
return ir_register_map(&msi_tvanywhere_map); return rc_map_register(&msi_tvanywhere_map);
} }
static void __exit exit_rc_map_msi_tvanywhere(void) static void __exit exit_rc_map_msi_tvanywhere(void)
{ {
ir_unregister_map(&msi_tvanywhere_map); rc_map_unregister(&msi_tvanywhere_map);
} }
module_init(init_rc_map_msi_tvanywhere) module_init(init_rc_map_msi_tvanywhere)
......
...@@ -70,7 +70,7 @@ static struct rc_map_table nebula[] = { ...@@ -70,7 +70,7 @@ static struct rc_map_table nebula[] = {
{ 0x36, KEY_PC }, { 0x36, KEY_PC },
}; };
static struct rc_keymap nebula_map = { static struct rc_map_list nebula_map = {
.map = { .map = {
.scan = nebula, .scan = nebula,
.size = ARRAY_SIZE(nebula), .size = ARRAY_SIZE(nebula),
...@@ -81,12 +81,12 @@ static struct rc_keymap nebula_map = { ...@@ -81,12 +81,12 @@ static struct rc_keymap nebula_map = {
static int __init init_rc_map_nebula(void) static int __init init_rc_map_nebula(void)
{ {
return ir_register_map(&nebula_map); return rc_map_register(&nebula_map);
} }
static void __exit exit_rc_map_nebula(void) static void __exit exit_rc_map_nebula(void)
{ {
ir_unregister_map(&nebula_map); rc_map_unregister(&nebula_map);
} }
module_init(init_rc_map_nebula) module_init(init_rc_map_nebula)
......
...@@ -79,7 +79,7 @@ static struct rc_map_table nec_terratec_cinergy_xs[] = { ...@@ -79,7 +79,7 @@ static struct rc_map_table nec_terratec_cinergy_xs[] = {
{ 0x145c, KEY_NEXT}, { 0x145c, KEY_NEXT},
}; };
static struct rc_keymap nec_terratec_cinergy_xs_map = { static struct rc_map_list nec_terratec_cinergy_xs_map = {
.map = { .map = {
.scan = nec_terratec_cinergy_xs, .scan = nec_terratec_cinergy_xs,
.size = ARRAY_SIZE(nec_terratec_cinergy_xs), .size = ARRAY_SIZE(nec_terratec_cinergy_xs),
...@@ -90,12 +90,12 @@ static struct rc_keymap nec_terratec_cinergy_xs_map = { ...@@ -90,12 +90,12 @@ static struct rc_keymap nec_terratec_cinergy_xs_map = {
static int __init init_rc_map_nec_terratec_cinergy_xs(void) static int __init init_rc_map_nec_terratec_cinergy_xs(void)
{ {
return ir_register_map(&nec_terratec_cinergy_xs_map); return rc_map_register(&nec_terratec_cinergy_xs_map);
} }
static void __exit exit_rc_map_nec_terratec_cinergy_xs(void) static void __exit exit_rc_map_nec_terratec_cinergy_xs(void)
{ {
ir_unregister_map(&nec_terratec_cinergy_xs_map); rc_map_unregister(&nec_terratec_cinergy_xs_map);
} }
module_init(init_rc_map_nec_terratec_cinergy_xs) module_init(init_rc_map_nec_terratec_cinergy_xs)
......
...@@ -59,7 +59,7 @@ static struct rc_map_table norwood[] = { ...@@ -59,7 +59,7 @@ static struct rc_map_table norwood[] = {
{ 0x65, KEY_POWER }, /* Computer power */ { 0x65, KEY_POWER }, /* Computer power */
}; };
static struct rc_keymap norwood_map = { static struct rc_map_list norwood_map = {
.map = { .map = {
.scan = norwood, .scan = norwood,
.size = ARRAY_SIZE(norwood), .size = ARRAY_SIZE(norwood),
...@@ -70,12 +70,12 @@ static struct rc_keymap norwood_map = { ...@@ -70,12 +70,12 @@ static struct rc_keymap norwood_map = {
static int __init init_rc_map_norwood(void) static int __init init_rc_map_norwood(void)
{ {
return ir_register_map(&norwood_map); return rc_map_register(&norwood_map);
} }
static void __exit exit_rc_map_norwood(void) static void __exit exit_rc_map_norwood(void)
{ {
ir_unregister_map(&norwood_map); rc_map_unregister(&norwood_map);
} }
module_init(init_rc_map_norwood) module_init(init_rc_map_norwood)
......
...@@ -54,7 +54,7 @@ static struct rc_map_table npgtech[] = { ...@@ -54,7 +54,7 @@ static struct rc_map_table npgtech[] = {
}; };
static struct rc_keymap npgtech_map = { static struct rc_map_list npgtech_map = {
.map = { .map = {
.scan = npgtech, .scan = npgtech,
.size = ARRAY_SIZE(npgtech), .size = ARRAY_SIZE(npgtech),
...@@ -65,12 +65,12 @@ static struct rc_keymap npgtech_map = { ...@@ -65,12 +65,12 @@ static struct rc_keymap npgtech_map = {
static int __init init_rc_map_npgtech(void) static int __init init_rc_map_npgtech(void)
{ {
return ir_register_map(&npgtech_map); return rc_map_register(&npgtech_map);
} }
static void __exit exit_rc_map_npgtech(void) static void __exit exit_rc_map_npgtech(void)
{ {
ir_unregister_map(&npgtech_map); rc_map_unregister(&npgtech_map);
} }
module_init(init_rc_map_npgtech) module_init(init_rc_map_npgtech)
......
...@@ -54,7 +54,7 @@ static struct rc_map_table pctv_sedna[] = { ...@@ -54,7 +54,7 @@ static struct rc_map_table pctv_sedna[] = {
{ 0x1f, KEY_PLAY }, /* Play */ { 0x1f, KEY_PLAY }, /* Play */
}; };
static struct rc_keymap pctv_sedna_map = { static struct rc_map_list pctv_sedna_map = {
.map = { .map = {
.scan = pctv_sedna, .scan = pctv_sedna,
.size = ARRAY_SIZE(pctv_sedna), .size = ARRAY_SIZE(pctv_sedna),
...@@ -65,12 +65,12 @@ static struct rc_keymap pctv_sedna_map = { ...@@ -65,12 +65,12 @@ static struct rc_keymap pctv_sedna_map = {
static int __init init_rc_map_pctv_sedna(void) static int __init init_rc_map_pctv_sedna(void)
{ {
return ir_register_map(&pctv_sedna_map); return rc_map_register(&pctv_sedna_map);
} }
static void __exit exit_rc_map_pctv_sedna(void) static void __exit exit_rc_map_pctv_sedna(void)
{ {
ir_unregister_map(&pctv_sedna_map); rc_map_unregister(&pctv_sedna_map);
} }
module_init(init_rc_map_pctv_sedna) module_init(init_rc_map_pctv_sedna)
......
...@@ -68,7 +68,7 @@ static struct rc_map_table pinnacle_color[] = { ...@@ -68,7 +68,7 @@ static struct rc_map_table pinnacle_color[] = {
{ 0x0a, KEY_BACKSPACE }, { 0x0a, KEY_BACKSPACE },
}; };
static struct rc_keymap pinnacle_color_map = { static struct rc_map_list pinnacle_color_map = {
.map = { .map = {
.scan = pinnacle_color, .scan = pinnacle_color,
.size = ARRAY_SIZE(pinnacle_color), .size = ARRAY_SIZE(pinnacle_color),
...@@ -79,12 +79,12 @@ static struct rc_keymap pinnacle_color_map = { ...@@ -79,12 +79,12 @@ static struct rc_keymap pinnacle_color_map = {
static int __init init_rc_map_pinnacle_color(void) static int __init init_rc_map_pinnacle_color(void)
{ {
return ir_register_map(&pinnacle_color_map); return rc_map_register(&pinnacle_color_map);
} }
static void __exit exit_rc_map_pinnacle_color(void) static void __exit exit_rc_map_pinnacle_color(void)
{ {
ir_unregister_map(&pinnacle_color_map); rc_map_unregister(&pinnacle_color_map);
} }
module_init(init_rc_map_pinnacle_color) module_init(init_rc_map_pinnacle_color)
......
...@@ -63,7 +63,7 @@ static struct rc_map_table pinnacle_grey[] = { ...@@ -63,7 +63,7 @@ static struct rc_map_table pinnacle_grey[] = {
{ 0x18, KEY_EPG }, { 0x18, KEY_EPG },
}; };
static struct rc_keymap pinnacle_grey_map = { static struct rc_map_list pinnacle_grey_map = {
.map = { .map = {
.scan = pinnacle_grey, .scan = pinnacle_grey,
.size = ARRAY_SIZE(pinnacle_grey), .size = ARRAY_SIZE(pinnacle_grey),
...@@ -74,12 +74,12 @@ static struct rc_keymap pinnacle_grey_map = { ...@@ -74,12 +74,12 @@ static struct rc_keymap pinnacle_grey_map = {
static int __init init_rc_map_pinnacle_grey(void) static int __init init_rc_map_pinnacle_grey(void)
{ {
return ir_register_map(&pinnacle_grey_map); return rc_map_register(&pinnacle_grey_map);
} }
static void __exit exit_rc_map_pinnacle_grey(void) static void __exit exit_rc_map_pinnacle_grey(void)
{ {
ir_unregister_map(&pinnacle_grey_map); rc_map_unregister(&pinnacle_grey_map);
} }
module_init(init_rc_map_pinnacle_grey) module_init(init_rc_map_pinnacle_grey)
......
...@@ -47,7 +47,7 @@ static struct rc_map_table pinnacle_pctv_hd[] = { ...@@ -47,7 +47,7 @@ static struct rc_map_table pinnacle_pctv_hd[] = {
{ 0x3f, KEY_EPG }, /* Labeled "?" */ { 0x3f, KEY_EPG }, /* Labeled "?" */
}; };
static struct rc_keymap pinnacle_pctv_hd_map = { static struct rc_map_list pinnacle_pctv_hd_map = {
.map = { .map = {
.scan = pinnacle_pctv_hd, .scan = pinnacle_pctv_hd,
.size = ARRAY_SIZE(pinnacle_pctv_hd), .size = ARRAY_SIZE(pinnacle_pctv_hd),
...@@ -58,12 +58,12 @@ static struct rc_keymap pinnacle_pctv_hd_map = { ...@@ -58,12 +58,12 @@ static struct rc_keymap pinnacle_pctv_hd_map = {
static int __init init_rc_map_pinnacle_pctv_hd(void) static int __init init_rc_map_pinnacle_pctv_hd(void)
{ {
return ir_register_map(&pinnacle_pctv_hd_map); return rc_map_register(&pinnacle_pctv_hd_map);
} }
static void __exit exit_rc_map_pinnacle_pctv_hd(void) static void __exit exit_rc_map_pinnacle_pctv_hd(void)
{ {
ir_unregister_map(&pinnacle_pctv_hd_map); rc_map_unregister(&pinnacle_pctv_hd_map);
} }
module_init(init_rc_map_pinnacle_pctv_hd) module_init(init_rc_map_pinnacle_pctv_hd)
......
...@@ -57,7 +57,7 @@ static struct rc_map_table pixelview_mk12[] = { ...@@ -57,7 +57,7 @@ static struct rc_map_table pixelview_mk12[] = {
{ 0x866b07, KEY_RADIO }, /* FM */ { 0x866b07, KEY_RADIO }, /* FM */
}; };
static struct rc_keymap pixelview_map = { static struct rc_map_list pixelview_map = {
.map = { .map = {
.scan = pixelview_mk12, .scan = pixelview_mk12,
.size = ARRAY_SIZE(pixelview_mk12), .size = ARRAY_SIZE(pixelview_mk12),
...@@ -68,12 +68,12 @@ static struct rc_keymap pixelview_map = { ...@@ -68,12 +68,12 @@ static struct rc_keymap pixelview_map = {
static int __init init_rc_map_pixelview(void) static int __init init_rc_map_pixelview(void)
{ {
return ir_register_map(&pixelview_map); return rc_map_register(&pixelview_map);
} }
static void __exit exit_rc_map_pixelview(void) static void __exit exit_rc_map_pixelview(void)
{ {
ir_unregister_map(&pixelview_map); rc_map_unregister(&pixelview_map);
} }
module_init(init_rc_map_pixelview) module_init(init_rc_map_pixelview)
......
...@@ -57,7 +57,7 @@ static struct rc_map_table pixelview_new[] = { ...@@ -57,7 +57,7 @@ static struct rc_map_table pixelview_new[] = {
{ 0x34, KEY_RADIO }, { 0x34, KEY_RADIO },
}; };
static struct rc_keymap pixelview_new_map = { static struct rc_map_list pixelview_new_map = {
.map = { .map = {
.scan = pixelview_new, .scan = pixelview_new,
.size = ARRAY_SIZE(pixelview_new), .size = ARRAY_SIZE(pixelview_new),
...@@ -68,12 +68,12 @@ static struct rc_keymap pixelview_new_map = { ...@@ -68,12 +68,12 @@ static struct rc_keymap pixelview_new_map = {
static int __init init_rc_map_pixelview_new(void) static int __init init_rc_map_pixelview_new(void)
{ {
return ir_register_map(&pixelview_new_map); return rc_map_register(&pixelview_new_map);
} }
static void __exit exit_rc_map_pixelview_new(void) static void __exit exit_rc_map_pixelview_new(void)
{ {
ir_unregister_map(&pixelview_new_map); rc_map_unregister(&pixelview_new_map);
} }
module_init(init_rc_map_pixelview_new) module_init(init_rc_map_pixelview_new)
......
...@@ -56,7 +56,7 @@ static struct rc_map_table pixelview[] = { ...@@ -56,7 +56,7 @@ static struct rc_map_table pixelview[] = {
{ 0x18, KEY_MUTE }, /* mute/unmute */ { 0x18, KEY_MUTE }, /* mute/unmute */
}; };
static struct rc_keymap pixelview_map = { static struct rc_map_list pixelview_map = {
.map = { .map = {
.scan = pixelview, .scan = pixelview,
.size = ARRAY_SIZE(pixelview), .size = ARRAY_SIZE(pixelview),
...@@ -67,12 +67,12 @@ static struct rc_keymap pixelview_map = { ...@@ -67,12 +67,12 @@ static struct rc_keymap pixelview_map = {
static int __init init_rc_map_pixelview(void) static int __init init_rc_map_pixelview(void)
{ {
return ir_register_map(&pixelview_map); return rc_map_register(&pixelview_map);
} }
static void __exit exit_rc_map_pixelview(void) static void __exit exit_rc_map_pixelview(void)
{ {
ir_unregister_map(&pixelview_map); rc_map_unregister(&pixelview_map);
} }
module_init(init_rc_map_pixelview) module_init(init_rc_map_pixelview)
......
...@@ -55,7 +55,7 @@ static struct rc_map_table powercolor_real_angel[] = { ...@@ -55,7 +55,7 @@ static struct rc_map_table powercolor_real_angel[] = {
{ 0x25, KEY_POWER }, /* power */ { 0x25, KEY_POWER }, /* power */
}; };
static struct rc_keymap powercolor_real_angel_map = { static struct rc_map_list powercolor_real_angel_map = {
.map = { .map = {
.scan = powercolor_real_angel, .scan = powercolor_real_angel,
.size = ARRAY_SIZE(powercolor_real_angel), .size = ARRAY_SIZE(powercolor_real_angel),
...@@ -66,12 +66,12 @@ static struct rc_keymap powercolor_real_angel_map = { ...@@ -66,12 +66,12 @@ static struct rc_keymap powercolor_real_angel_map = {
static int __init init_rc_map_powercolor_real_angel(void) static int __init init_rc_map_powercolor_real_angel(void)
{ {
return ir_register_map(&powercolor_real_angel_map); return rc_map_register(&powercolor_real_angel_map);
} }
static void __exit exit_rc_map_powercolor_real_angel(void) static void __exit exit_rc_map_powercolor_real_angel(void)
{ {
ir_unregister_map(&powercolor_real_angel_map); rc_map_unregister(&powercolor_real_angel_map);
} }
module_init(init_rc_map_powercolor_real_angel) module_init(init_rc_map_powercolor_real_angel)
......
...@@ -43,7 +43,7 @@ static struct rc_map_table proteus_2309[] = { ...@@ -43,7 +43,7 @@ static struct rc_map_table proteus_2309[] = {
{ 0x14, KEY_F1 }, { 0x14, KEY_F1 },
}; };
static struct rc_keymap proteus_2309_map = { static struct rc_map_list proteus_2309_map = {
.map = { .map = {
.scan = proteus_2309, .scan = proteus_2309,
.size = ARRAY_SIZE(proteus_2309), .size = ARRAY_SIZE(proteus_2309),
...@@ -54,12 +54,12 @@ static struct rc_keymap proteus_2309_map = { ...@@ -54,12 +54,12 @@ static struct rc_keymap proteus_2309_map = {
static int __init init_rc_map_proteus_2309(void) static int __init init_rc_map_proteus_2309(void)
{ {
return ir_register_map(&proteus_2309_map); return rc_map_register(&proteus_2309_map);
} }
static void __exit exit_rc_map_proteus_2309(void) static void __exit exit_rc_map_proteus_2309(void)
{ {
ir_unregister_map(&proteus_2309_map); rc_map_unregister(&proteus_2309_map);
} }
module_init(init_rc_map_proteus_2309) module_init(init_rc_map_proteus_2309)
......
...@@ -55,7 +55,7 @@ static struct rc_map_table purpletv[] = { ...@@ -55,7 +55,7 @@ static struct rc_map_table purpletv[] = {
}; };
static struct rc_keymap purpletv_map = { static struct rc_map_list purpletv_map = {
.map = { .map = {
.scan = purpletv, .scan = purpletv,
.size = ARRAY_SIZE(purpletv), .size = ARRAY_SIZE(purpletv),
...@@ -66,12 +66,12 @@ static struct rc_keymap purpletv_map = { ...@@ -66,12 +66,12 @@ static struct rc_keymap purpletv_map = {
static int __init init_rc_map_purpletv(void) static int __init init_rc_map_purpletv(void)
{ {
return ir_register_map(&purpletv_map); return rc_map_register(&purpletv_map);
} }
static void __exit exit_rc_map_purpletv(void) static void __exit exit_rc_map_purpletv(void)
{ {
ir_unregister_map(&purpletv_map); rc_map_unregister(&purpletv_map);
} }
module_init(init_rc_map_purpletv) module_init(init_rc_map_purpletv)
......
...@@ -52,7 +52,7 @@ static struct rc_map_table pv951[] = { ...@@ -52,7 +52,7 @@ static struct rc_map_table pv951[] = {
{ 0x1c, KEY_MEDIA }, /* PC/TV */ { 0x1c, KEY_MEDIA }, /* PC/TV */
}; };
static struct rc_keymap pv951_map = { static struct rc_map_list pv951_map = {
.map = { .map = {
.scan = pv951, .scan = pv951,
.size = ARRAY_SIZE(pv951), .size = ARRAY_SIZE(pv951),
...@@ -63,12 +63,12 @@ static struct rc_keymap pv951_map = { ...@@ -63,12 +63,12 @@ static struct rc_keymap pv951_map = {
static int __init init_rc_map_pv951(void) static int __init init_rc_map_pv951(void)
{ {
return ir_register_map(&pv951_map); return rc_map_register(&pv951_map);
} }
static void __exit exit_rc_map_pv951(void) static void __exit exit_rc_map_pv951(void)
{ {
ir_unregister_map(&pv951_map); rc_map_unregister(&pv951_map);
} }
module_init(init_rc_map_pv951) module_init(init_rc_map_pv951)
......
...@@ -77,7 +77,7 @@ static struct rc_map_table rc5_hauppauge_new[] = { ...@@ -77,7 +77,7 @@ static struct rc_map_table rc5_hauppauge_new[] = {
{ 0x1e3d, KEY_POWER }, /* system power (green button) */ { 0x1e3d, KEY_POWER }, /* system power (green button) */
}; };
static struct rc_keymap rc5_hauppauge_new_map = { static struct rc_map_list rc5_hauppauge_new_map = {
.map = { .map = {
.scan = rc5_hauppauge_new, .scan = rc5_hauppauge_new,
.size = ARRAY_SIZE(rc5_hauppauge_new), .size = ARRAY_SIZE(rc5_hauppauge_new),
...@@ -88,12 +88,12 @@ static struct rc_keymap rc5_hauppauge_new_map = { ...@@ -88,12 +88,12 @@ static struct rc_keymap rc5_hauppauge_new_map = {
static int __init init_rc_map_rc5_hauppauge_new(void) static int __init init_rc_map_rc5_hauppauge_new(void)
{ {
return ir_register_map(&rc5_hauppauge_new_map); return rc_map_register(&rc5_hauppauge_new_map);
} }
static void __exit exit_rc_map_rc5_hauppauge_new(void) static void __exit exit_rc_map_rc5_hauppauge_new(void)
{ {
ir_unregister_map(&rc5_hauppauge_new_map); rc_map_unregister(&rc5_hauppauge_new_map);
} }
module_init(init_rc_map_rc5_hauppauge_new) module_init(init_rc_map_rc5_hauppauge_new)
......
...@@ -55,7 +55,7 @@ static struct rc_map_table rc5_tv[] = { ...@@ -55,7 +55,7 @@ static struct rc_map_table rc5_tv[] = {
}; };
static struct rc_keymap rc5_tv_map = { static struct rc_map_list rc5_tv_map = {
.map = { .map = {
.scan = rc5_tv, .scan = rc5_tv,
.size = ARRAY_SIZE(rc5_tv), .size = ARRAY_SIZE(rc5_tv),
...@@ -66,12 +66,12 @@ static struct rc_keymap rc5_tv_map = { ...@@ -66,12 +66,12 @@ static struct rc_keymap rc5_tv_map = {
static int __init init_rc_map_rc5_tv(void) static int __init init_rc_map_rc5_tv(void)
{ {
return ir_register_map(&rc5_tv_map); return rc_map_register(&rc5_tv_map);
} }
static void __exit exit_rc_map_rc5_tv(void) static void __exit exit_rc_map_rc5_tv(void)
{ {
ir_unregister_map(&rc5_tv_map); rc_map_unregister(&rc5_tv_map);
} }
module_init(init_rc_map_rc5_tv) module_init(init_rc_map_rc5_tv)
......
...@@ -87,7 +87,7 @@ static struct rc_map_table rc6_mce[] = { ...@@ -87,7 +87,7 @@ static struct rc_map_table rc6_mce[] = {
{ 0x800f0481, KEY_PLAYPAUSE }, { 0x800f0481, KEY_PLAYPAUSE },
}; };
static struct rc_keymap rc6_mce_map = { static struct rc_map_list rc6_mce_map = {
.map = { .map = {
.scan = rc6_mce, .scan = rc6_mce,
.size = ARRAY_SIZE(rc6_mce), .size = ARRAY_SIZE(rc6_mce),
...@@ -98,12 +98,12 @@ static struct rc_keymap rc6_mce_map = { ...@@ -98,12 +98,12 @@ static struct rc_keymap rc6_mce_map = {
static int __init init_rc_map_rc6_mce(void) static int __init init_rc_map_rc6_mce(void)
{ {
return ir_register_map(&rc6_mce_map); return rc_map_register(&rc6_mce_map);
} }
static void __exit exit_rc_map_rc6_mce(void) static void __exit exit_rc_map_rc6_mce(void)
{ {
ir_unregister_map(&rc6_mce_map); rc_map_unregister(&rc6_mce_map);
} }
module_init(init_rc_map_rc6_mce) module_init(init_rc_map_rc6_mce)
......
...@@ -52,7 +52,7 @@ static struct rc_map_table real_audio_220_32_keys[] = { ...@@ -52,7 +52,7 @@ static struct rc_map_table real_audio_220_32_keys[] = {
}; };
static struct rc_keymap real_audio_220_32_keys_map = { static struct rc_map_list real_audio_220_32_keys_map = {
.map = { .map = {
.scan = real_audio_220_32_keys, .scan = real_audio_220_32_keys,
.size = ARRAY_SIZE(real_audio_220_32_keys), .size = ARRAY_SIZE(real_audio_220_32_keys),
...@@ -63,12 +63,12 @@ static struct rc_keymap real_audio_220_32_keys_map = { ...@@ -63,12 +63,12 @@ static struct rc_keymap real_audio_220_32_keys_map = {
static int __init init_rc_map_real_audio_220_32_keys(void) static int __init init_rc_map_real_audio_220_32_keys(void)
{ {
return ir_register_map(&real_audio_220_32_keys_map); return rc_map_register(&real_audio_220_32_keys_map);
} }
static void __exit exit_rc_map_real_audio_220_32_keys(void) static void __exit exit_rc_map_real_audio_220_32_keys(void)
{ {
ir_unregister_map(&real_audio_220_32_keys_map); rc_map_unregister(&real_audio_220_32_keys_map);
} }
module_init(init_rc_map_real_audio_220_32_keys) module_init(init_rc_map_real_audio_220_32_keys)
......
...@@ -56,7 +56,7 @@ static struct rc_map_table streamzap[] = { ...@@ -56,7 +56,7 @@ static struct rc_map_table streamzap[] = {
}; };
static struct rc_keymap streamzap_map = { static struct rc_map_list streamzap_map = {
.map = { .map = {
.scan = streamzap, .scan = streamzap,
.size = ARRAY_SIZE(streamzap), .size = ARRAY_SIZE(streamzap),
...@@ -67,12 +67,12 @@ static struct rc_keymap streamzap_map = { ...@@ -67,12 +67,12 @@ static struct rc_keymap streamzap_map = {
static int __init init_rc_map_streamzap(void) static int __init init_rc_map_streamzap(void)
{ {
return ir_register_map(&streamzap_map); return rc_map_register(&streamzap_map);
} }
static void __exit exit_rc_map_streamzap(void) static void __exit exit_rc_map_streamzap(void)
{ {
ir_unregister_map(&streamzap_map); rc_map_unregister(&streamzap_map);
} }
module_init(init_rc_map_streamzap) module_init(init_rc_map_streamzap)
......
...@@ -47,7 +47,7 @@ static struct rc_map_table tbs_nec[] = { ...@@ -47,7 +47,7 @@ static struct rc_map_table tbs_nec[] = {
{ 0x1b, KEY_MODE}, { 0x1b, KEY_MODE},
}; };
static struct rc_keymap tbs_nec_map = { static struct rc_map_list tbs_nec_map = {
.map = { .map = {
.scan = tbs_nec, .scan = tbs_nec,
.size = ARRAY_SIZE(tbs_nec), .size = ARRAY_SIZE(tbs_nec),
...@@ -58,12 +58,12 @@ static struct rc_keymap tbs_nec_map = { ...@@ -58,12 +58,12 @@ static struct rc_keymap tbs_nec_map = {
static int __init init_rc_map_tbs_nec(void) static int __init init_rc_map_tbs_nec(void)
{ {
return ir_register_map(&tbs_nec_map); return rc_map_register(&tbs_nec_map);
} }
static void __exit exit_rc_map_tbs_nec(void) static void __exit exit_rc_map_tbs_nec(void)
{ {
ir_unregister_map(&tbs_nec_map); rc_map_unregister(&tbs_nec_map);
} }
module_init(init_rc_map_tbs_nec) module_init(init_rc_map_tbs_nec)
......
...@@ -66,7 +66,7 @@ static struct rc_map_table terratec_cinergy_xs[] = { ...@@ -66,7 +66,7 @@ static struct rc_map_table terratec_cinergy_xs[] = {
{ 0x5c, KEY_NEXT}, { 0x5c, KEY_NEXT},
}; };
static struct rc_keymap terratec_cinergy_xs_map = { static struct rc_map_list terratec_cinergy_xs_map = {
.map = { .map = {
.scan = terratec_cinergy_xs, .scan = terratec_cinergy_xs,
.size = ARRAY_SIZE(terratec_cinergy_xs), .size = ARRAY_SIZE(terratec_cinergy_xs),
...@@ -77,12 +77,12 @@ static struct rc_keymap terratec_cinergy_xs_map = { ...@@ -77,12 +77,12 @@ static struct rc_keymap terratec_cinergy_xs_map = {
static int __init init_rc_map_terratec_cinergy_xs(void) static int __init init_rc_map_terratec_cinergy_xs(void)
{ {
return ir_register_map(&terratec_cinergy_xs_map); return rc_map_register(&terratec_cinergy_xs_map);
} }
static void __exit exit_rc_map_terratec_cinergy_xs(void) static void __exit exit_rc_map_terratec_cinergy_xs(void)
{ {
ir_unregister_map(&terratec_cinergy_xs_map); rc_map_unregister(&terratec_cinergy_xs_map);
} }
module_init(init_rc_map_terratec_cinergy_xs) module_init(init_rc_map_terratec_cinergy_xs)
......
...@@ -53,7 +53,7 @@ static struct rc_map_table terratec_slim[] = { ...@@ -53,7 +53,7 @@ static struct rc_map_table terratec_slim[] = {
{ 0x02bd45, KEY_POWER2 }, /* [red power button] */ { 0x02bd45, KEY_POWER2 }, /* [red power button] */
}; };
static struct rc_keymap terratec_slim_map = { static struct rc_map_list terratec_slim_map = {
.map = { .map = {
.scan = terratec_slim, .scan = terratec_slim,
.size = ARRAY_SIZE(terratec_slim), .size = ARRAY_SIZE(terratec_slim),
...@@ -64,12 +64,12 @@ static struct rc_keymap terratec_slim_map = { ...@@ -64,12 +64,12 @@ static struct rc_keymap terratec_slim_map = {
static int __init init_rc_map_terratec_slim(void) static int __init init_rc_map_terratec_slim(void)
{ {
return ir_register_map(&terratec_slim_map); return rc_map_register(&terratec_slim_map);
} }
static void __exit exit_rc_map_terratec_slim(void) static void __exit exit_rc_map_terratec_slim(void)
{ {
ir_unregister_map(&terratec_slim_map); rc_map_unregister(&terratec_slim_map);
} }
module_init(init_rc_map_terratec_slim) module_init(init_rc_map_terratec_slim)
......
...@@ -62,7 +62,7 @@ static struct rc_map_table tevii_nec[] = { ...@@ -62,7 +62,7 @@ static struct rc_map_table tevii_nec[] = {
{ 0x58, KEY_SWITCHVIDEOMODE}, { 0x58, KEY_SWITCHVIDEOMODE},
}; };
static struct rc_keymap tevii_nec_map = { static struct rc_map_list tevii_nec_map = {
.map = { .map = {
.scan = tevii_nec, .scan = tevii_nec,
.size = ARRAY_SIZE(tevii_nec), .size = ARRAY_SIZE(tevii_nec),
...@@ -73,12 +73,12 @@ static struct rc_keymap tevii_nec_map = { ...@@ -73,12 +73,12 @@ static struct rc_keymap tevii_nec_map = {
static int __init init_rc_map_tevii_nec(void) static int __init init_rc_map_tevii_nec(void)
{ {
return ir_register_map(&tevii_nec_map); return rc_map_register(&tevii_nec_map);
} }
static void __exit exit_rc_map_tevii_nec(void) static void __exit exit_rc_map_tevii_nec(void)
{ {
ir_unregister_map(&tevii_nec_map); rc_map_unregister(&tevii_nec_map);
} }
module_init(init_rc_map_tevii_nec) module_init(init_rc_map_tevii_nec)
......
...@@ -59,7 +59,7 @@ static struct rc_map_table total_media_in_hand[] = { ...@@ -59,7 +59,7 @@ static struct rc_map_table total_media_in_hand[] = {
{ 0x02bd45, KEY_INFO }, /* [red (I)] */ { 0x02bd45, KEY_INFO }, /* [red (I)] */
}; };
static struct rc_keymap total_media_in_hand_map = { static struct rc_map_list total_media_in_hand_map = {
.map = { .map = {
.scan = total_media_in_hand, .scan = total_media_in_hand,
.size = ARRAY_SIZE(total_media_in_hand), .size = ARRAY_SIZE(total_media_in_hand),
...@@ -70,12 +70,12 @@ static struct rc_keymap total_media_in_hand_map = { ...@@ -70,12 +70,12 @@ static struct rc_keymap total_media_in_hand_map = {
static int __init init_rc_map_total_media_in_hand(void) static int __init init_rc_map_total_media_in_hand(void)
{ {
return ir_register_map(&total_media_in_hand_map); return rc_map_register(&total_media_in_hand_map);
} }
static void __exit exit_rc_map_total_media_in_hand(void) static void __exit exit_rc_map_total_media_in_hand(void)
{ {
ir_unregister_map(&total_media_in_hand_map); rc_map_unregister(&total_media_in_hand_map);
} }
module_init(init_rc_map_total_media_in_hand) module_init(init_rc_map_total_media_in_hand)
......
...@@ -54,7 +54,7 @@ static struct rc_map_table trekstor[] = { ...@@ -54,7 +54,7 @@ static struct rc_map_table trekstor[] = {
{ 0x009f, KEY_LEFT }, /* Left */ { 0x009f, KEY_LEFT }, /* Left */
}; };
static struct rc_keymap trekstor_map = { static struct rc_map_list trekstor_map = {
.map = { .map = {
.scan = trekstor, .scan = trekstor,
.size = ARRAY_SIZE(trekstor), .size = ARRAY_SIZE(trekstor),
...@@ -65,12 +65,12 @@ static struct rc_keymap trekstor_map = { ...@@ -65,12 +65,12 @@ static struct rc_keymap trekstor_map = {
static int __init init_rc_map_trekstor(void) static int __init init_rc_map_trekstor(void)
{ {
return ir_register_map(&trekstor_map); return rc_map_register(&trekstor_map);
} }
static void __exit exit_rc_map_trekstor(void) static void __exit exit_rc_map_trekstor(void)
{ {
ir_unregister_map(&trekstor_map); rc_map_unregister(&trekstor_map);
} }
module_init(init_rc_map_trekstor) module_init(init_rc_map_trekstor)
......
...@@ -56,7 +56,7 @@ static struct rc_map_table tt_1500[] = { ...@@ -56,7 +56,7 @@ static struct rc_map_table tt_1500[] = {
{ 0x3f, KEY_FORWARD }, { 0x3f, KEY_FORWARD },
}; };
static struct rc_keymap tt_1500_map = { static struct rc_map_list tt_1500_map = {
.map = { .map = {
.scan = tt_1500, .scan = tt_1500,
.size = ARRAY_SIZE(tt_1500), .size = ARRAY_SIZE(tt_1500),
...@@ -67,12 +67,12 @@ static struct rc_keymap tt_1500_map = { ...@@ -67,12 +67,12 @@ static struct rc_keymap tt_1500_map = {
static int __init init_rc_map_tt_1500(void) static int __init init_rc_map_tt_1500(void)
{ {
return ir_register_map(&tt_1500_map); return rc_map_register(&tt_1500_map);
} }
static void __exit exit_rc_map_tt_1500(void) static void __exit exit_rc_map_tt_1500(void)
{ {
ir_unregister_map(&tt_1500_map); rc_map_unregister(&tt_1500_map);
} }
module_init(init_rc_map_tt_1500) module_init(init_rc_map_tt_1500)
......
...@@ -61,7 +61,7 @@ static struct rc_map_table twinhan_vp1027[] = { ...@@ -61,7 +61,7 @@ static struct rc_map_table twinhan_vp1027[] = {
{ 0x5f, KEY_BLUE }, { 0x5f, KEY_BLUE },
}; };
static struct rc_keymap twinhan_vp1027_map = { static struct rc_map_list twinhan_vp1027_map = {
.map = { .map = {
.scan = twinhan_vp1027, .scan = twinhan_vp1027,
.size = ARRAY_SIZE(twinhan_vp1027), .size = ARRAY_SIZE(twinhan_vp1027),
...@@ -72,12 +72,12 @@ static struct rc_keymap twinhan_vp1027_map = { ...@@ -72,12 +72,12 @@ static struct rc_keymap twinhan_vp1027_map = {
static int __init init_rc_map_twinhan_vp1027(void) static int __init init_rc_map_twinhan_vp1027(void)
{ {
return ir_register_map(&twinhan_vp1027_map); return rc_map_register(&twinhan_vp1027_map);
} }
static void __exit exit_rc_map_twinhan_vp1027(void) static void __exit exit_rc_map_twinhan_vp1027(void)
{ {
ir_unregister_map(&twinhan_vp1027_map); rc_map_unregister(&twinhan_vp1027_map);
} }
module_init(init_rc_map_twinhan_vp1027) module_init(init_rc_map_twinhan_vp1027)
......
...@@ -59,7 +59,7 @@ static struct rc_map_table videomate_s350[] = { ...@@ -59,7 +59,7 @@ static struct rc_map_table videomate_s350[] = {
{ 0x20, KEY_TEXT}, { 0x20, KEY_TEXT},
}; };
static struct rc_keymap videomate_s350_map = { static struct rc_map_list videomate_s350_map = {
.map = { .map = {
.scan = videomate_s350, .scan = videomate_s350,
.size = ARRAY_SIZE(videomate_s350), .size = ARRAY_SIZE(videomate_s350),
...@@ -70,12 +70,12 @@ static struct rc_keymap videomate_s350_map = { ...@@ -70,12 +70,12 @@ static struct rc_keymap videomate_s350_map = {
static int __init init_rc_map_videomate_s350(void) static int __init init_rc_map_videomate_s350(void)
{ {
return ir_register_map(&videomate_s350_map); return rc_map_register(&videomate_s350_map);
} }
static void __exit exit_rc_map_videomate_s350(void) static void __exit exit_rc_map_videomate_s350(void)
{ {
ir_unregister_map(&videomate_s350_map); rc_map_unregister(&videomate_s350_map);
} }
module_init(init_rc_map_videomate_s350) module_init(init_rc_map_videomate_s350)
......
...@@ -61,7 +61,7 @@ static struct rc_map_table videomate_tv_pvr[] = { ...@@ -61,7 +61,7 @@ static struct rc_map_table videomate_tv_pvr[] = {
{ 0x21, KEY_SLEEP }, { 0x21, KEY_SLEEP },
}; };
static struct rc_keymap videomate_tv_pvr_map = { static struct rc_map_list videomate_tv_pvr_map = {
.map = { .map = {
.scan = videomate_tv_pvr, .scan = videomate_tv_pvr,
.size = ARRAY_SIZE(videomate_tv_pvr), .size = ARRAY_SIZE(videomate_tv_pvr),
...@@ -72,12 +72,12 @@ static struct rc_keymap videomate_tv_pvr_map = { ...@@ -72,12 +72,12 @@ static struct rc_keymap videomate_tv_pvr_map = {
static int __init init_rc_map_videomate_tv_pvr(void) static int __init init_rc_map_videomate_tv_pvr(void)
{ {
return ir_register_map(&videomate_tv_pvr_map); return rc_map_register(&videomate_tv_pvr_map);
} }
static void __exit exit_rc_map_videomate_tv_pvr(void) static void __exit exit_rc_map_videomate_tv_pvr(void)
{ {
ir_unregister_map(&videomate_tv_pvr_map); rc_map_unregister(&videomate_tv_pvr_map);
} }
module_init(init_rc_map_videomate_tv_pvr) module_init(init_rc_map_videomate_tv_pvr)
......
...@@ -56,7 +56,7 @@ static struct rc_map_table winfast_usbii_deluxe[] = { ...@@ -56,7 +56,7 @@ static struct rc_map_table winfast_usbii_deluxe[] = {
}; };
static struct rc_keymap winfast_usbii_deluxe_map = { static struct rc_map_list winfast_usbii_deluxe_map = {
.map = { .map = {
.scan = winfast_usbii_deluxe, .scan = winfast_usbii_deluxe,
.size = ARRAY_SIZE(winfast_usbii_deluxe), .size = ARRAY_SIZE(winfast_usbii_deluxe),
...@@ -67,12 +67,12 @@ static struct rc_keymap winfast_usbii_deluxe_map = { ...@@ -67,12 +67,12 @@ static struct rc_keymap winfast_usbii_deluxe_map = {
static int __init init_rc_map_winfast_usbii_deluxe(void) static int __init init_rc_map_winfast_usbii_deluxe(void)
{ {
return ir_register_map(&winfast_usbii_deluxe_map); return rc_map_register(&winfast_usbii_deluxe_map);
} }
static void __exit exit_rc_map_winfast_usbii_deluxe(void) static void __exit exit_rc_map_winfast_usbii_deluxe(void)
{ {
ir_unregister_map(&winfast_usbii_deluxe_map); rc_map_unregister(&winfast_usbii_deluxe_map);
} }
module_init(init_rc_map_winfast_usbii_deluxe) module_init(init_rc_map_winfast_usbii_deluxe)
......
...@@ -76,7 +76,7 @@ static struct rc_map_table winfast[] = { ...@@ -76,7 +76,7 @@ static struct rc_map_table winfast[] = {
{ 0x3f, KEY_F24 } /* MCE -CH, on Y04G0033 */ { 0x3f, KEY_F24 } /* MCE -CH, on Y04G0033 */
}; };
static struct rc_keymap winfast_map = { static struct rc_map_list winfast_map = {
.map = { .map = {
.scan = winfast, .scan = winfast,
.size = ARRAY_SIZE(winfast), .size = ARRAY_SIZE(winfast),
...@@ -87,12 +87,12 @@ static struct rc_keymap winfast_map = { ...@@ -87,12 +87,12 @@ static struct rc_keymap winfast_map = {
static int __init init_rc_map_winfast(void) static int __init init_rc_map_winfast(void)
{ {
return ir_register_map(&winfast_map); return rc_map_register(&winfast_map);
} }
static void __exit exit_rc_map_winfast(void) static void __exit exit_rc_map_winfast(void)
{ {
ir_unregister_map(&winfast_map); rc_map_unregister(&winfast_map);
} }
module_init(init_rc_map_winfast) module_init(init_rc_map_winfast)
......
...@@ -31,9 +31,9 @@ ...@@ -31,9 +31,9 @@
static LIST_HEAD(rc_map_list); static LIST_HEAD(rc_map_list);
static DEFINE_SPINLOCK(rc_map_lock); static DEFINE_SPINLOCK(rc_map_lock);
static struct rc_keymap *seek_rc_map(const char *name) static struct rc_map_list *seek_rc_map(const char *name)
{ {
struct rc_keymap *map = NULL; struct rc_map_list *map = NULL;
spin_lock(&rc_map_lock); spin_lock(&rc_map_lock);
list_for_each_entry(map, &rc_map_list, list) { list_for_each_entry(map, &rc_map_list, list) {
...@@ -47,10 +47,10 @@ static struct rc_keymap *seek_rc_map(const char *name) ...@@ -47,10 +47,10 @@ static struct rc_keymap *seek_rc_map(const char *name)
return NULL; return NULL;
} }
struct rc_map *get_rc_map(const char *name) struct rc_map *rc_map_get(const char *name)
{ {
struct rc_keymap *map; struct rc_map_list *map;
map = seek_rc_map(name); map = seek_rc_map(name);
#ifdef MODULE #ifdef MODULE
...@@ -74,31 +74,31 @@ struct rc_map *get_rc_map(const char *name) ...@@ -74,31 +74,31 @@ struct rc_map *get_rc_map(const char *name)
return &map->map; return &map->map;
} }
EXPORT_SYMBOL_GPL(get_rc_map); EXPORT_SYMBOL_GPL(rc_map_get);
int ir_register_map(struct rc_keymap *map) int rc_map_register(struct rc_map_list *map)
{ {
spin_lock(&rc_map_lock); spin_lock(&rc_map_lock);
list_add_tail(&map->list, &rc_map_list); list_add_tail(&map->list, &rc_map_list);
spin_unlock(&rc_map_lock); spin_unlock(&rc_map_lock);
return 0; return 0;
} }
EXPORT_SYMBOL_GPL(ir_register_map); EXPORT_SYMBOL_GPL(rc_map_register);
void ir_unregister_map(struct rc_keymap *map) void rc_map_unregister(struct rc_map_list *map)
{ {
spin_lock(&rc_map_lock); spin_lock(&rc_map_lock);
list_del(&map->list); list_del(&map->list);
spin_unlock(&rc_map_lock); spin_unlock(&rc_map_lock);
} }
EXPORT_SYMBOL_GPL(ir_unregister_map); EXPORT_SYMBOL_GPL(rc_map_unregister);
static struct rc_map_table empty[] = { static struct rc_map_table empty[] = {
{ 0x2a, KEY_COFFEE }, { 0x2a, KEY_COFFEE },
}; };
static struct rc_keymap empty_map = { static struct rc_map_list empty_map = {
.map = { .map = {
.scan = empty, .scan = empty,
.size = ARRAY_SIZE(empty), .size = ARRAY_SIZE(empty),
...@@ -996,9 +996,9 @@ int rc_register_device(struct rc_dev *dev) ...@@ -996,9 +996,9 @@ int rc_register_device(struct rc_dev *dev)
if (!dev || !dev->map_name) if (!dev || !dev->map_name)
return -EINVAL; return -EINVAL;
rc_map = get_rc_map(dev->map_name); rc_map = rc_map_get(dev->map_name);
if (!rc_map) if (!rc_map)
rc_map = get_rc_map(RC_MAP_EMPTY); rc_map = rc_map_get(RC_MAP_EMPTY);
if (!rc_map || !rc_map->scan || rc_map->size == 0) if (!rc_map || !rc_map->scan || rc_map->size == 0)
return -EINVAL; return -EINVAL;
...@@ -1113,7 +1113,7 @@ static int __init rc_core_init(void) ...@@ -1113,7 +1113,7 @@ static int __init rc_core_init(void)
/* Initialize/load the decoders/keymap code that will be used */ /* Initialize/load the decoders/keymap code that will be used */
ir_raw_init(); ir_raw_init();
ir_register_map(&empty_map); rc_map_register(&empty_map);
return 0; return 0;
} }
...@@ -1121,7 +1121,7 @@ static int __init rc_core_init(void) ...@@ -1121,7 +1121,7 @@ static int __init rc_core_init(void)
static void __exit rc_core_exit(void) static void __exit rc_core_exit(void)
{ {
class_unregister(&ir_input_class); class_unregister(&ir_input_class);
ir_unregister_map(&empty_map); rc_map_unregister(&empty_map);
} }
module_init(rc_core_init); module_init(rc_core_init);
......
...@@ -40,16 +40,16 @@ struct rc_map { ...@@ -40,16 +40,16 @@ struct rc_map {
spinlock_t lock; spinlock_t lock;
}; };
struct rc_keymap { struct rc_map_list {
struct list_head list; struct list_head list;
struct rc_map map; struct rc_map map;
}; };
/* Routines from rc-map.c */ /* Routines from rc-map.c */
int ir_register_map(struct rc_keymap *map); int rc_map_register(struct rc_map_list *map);
void ir_unregister_map(struct rc_keymap *map); void rc_map_unregister(struct rc_map_list *map);
struct rc_map *get_rc_map(const char *name); struct rc_map *rc_map_get(const char *name);
void rc_map_init(void); void rc_map_init(void);
/* Names of the several keytables defined in-kernel */ /* Names of the several keytables defined in-kernel */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment