提交 d100e659 编写于 作者: M Mauro Carvalho Chehab

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

Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 2f4f58d6
......@@ -95,7 +95,7 @@ static struct rc_map_table mantis_ir_table[] = {
{ 0x00, KEY_BLUE },
};
static struct rc_keymap ir_mantis_map = {
static struct rc_map_list ir_mantis_map = {
.map = {
.scan = mantis_ir_table,
.size = ARRAY_SIZE(mantis_ir_table),
......@@ -109,7 +109,7 @@ int mantis_input_init(struct mantis_pci *mantis)
struct rc_dev *dev;
int err;
err = ir_register_map(&ir_mantis_map);
err = rc_map_register(&ir_mantis_map);
if (err)
goto out;
......@@ -145,7 +145,7 @@ int mantis_input_init(struct mantis_pci *mantis)
out_dev:
rc_free_device(dev);
out_map:
ir_unregister_map(&ir_mantis_map);
rc_map_unregister(&ir_mantis_map);
out:
return err;
}
......@@ -153,7 +153,7 @@ int mantis_input_init(struct mantis_pci *mantis)
int mantis_exit(struct mantis_pci *mantis)
{
rc_unregister_device(mantis->rc);
ir_unregister_map(&ir_mantis_map);
rc_map_unregister(&ir_mantis_map);
return 0;
}
......@@ -63,7 +63,7 @@ static struct rc_map_table adstech_dvb_t_pci[] = {
{ 0x1c, KEY_VOLUMEDOWN },
};
static struct rc_keymap adstech_dvb_t_pci_map = {
static struct rc_map_list adstech_dvb_t_pci_map = {
.map = {
.scan = adstech_dvb_t_pci,
.size = ARRAY_SIZE(adstech_dvb_t_pci),
......@@ -74,12 +74,12 @@ static struct rc_keymap adstech_dvb_t_pci_map = {
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)
{
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)
......
......@@ -42,7 +42,7 @@ static struct rc_map_table alink_dtu_m[] = {
{ 0x081d, KEY_CHANNELDOWN },
};
static struct rc_keymap alink_dtu_m_map = {
static struct rc_map_list alink_dtu_m_map = {
.map = {
.scan = alink_dtu_m,
.size = ARRAY_SIZE(alink_dtu_m),
......@@ -53,12 +53,12 @@ static struct rc_keymap alink_dtu_m_map = {
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)
{
ir_unregister_map(&alink_dtu_m_map);
rc_map_unregister(&alink_dtu_m_map);
}
module_init(init_rc_map_alink_dtu_m)
......
......@@ -67,7 +67,7 @@ static struct rc_map_table anysee[] = {
{ 0x0851, KEY_PAUSE },
};
static struct rc_keymap anysee_map = {
static struct rc_map_list anysee_map = {
.map = {
.scan = anysee,
.size = ARRAY_SIZE(anysee),
......@@ -78,12 +78,12 @@ static struct rc_keymap anysee_map = {
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)
{
ir_unregister_map(&anysee_map);
rc_map_unregister(&anysee_map);
}
module_init(init_rc_map_anysee)
......
......@@ -54,7 +54,7 @@ static struct rc_map_table apac_viewcomp[] = {
{ 0x18, KEY_KPMINUS }, /* fine tune <<<< */
};
static struct rc_keymap apac_viewcomp_map = {
static struct rc_map_list apac_viewcomp_map = {
.map = {
.scan = apac_viewcomp,
.size = ARRAY_SIZE(apac_viewcomp),
......@@ -65,12 +65,12 @@ static struct rc_keymap apac_viewcomp_map = {
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)
{
ir_unregister_map(&apac_viewcomp_map);
rc_map_unregister(&apac_viewcomp_map);
}
module_init(init_rc_map_apac_viewcomp)
......
......@@ -65,7 +65,7 @@ static struct rc_map_table asus_pc39[] = {
{ 0x083e, KEY_DVD }, /* dvd */
};
static struct rc_keymap asus_pc39_map = {
static struct rc_map_list asus_pc39_map = {
.map = {
.scan = asus_pc39,
.size = ARRAY_SIZE(asus_pc39),
......@@ -76,12 +76,12 @@ static struct rc_keymap asus_pc39_map = {
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)
{
ir_unregister_map(&asus_pc39_map);
rc_map_unregister(&asus_pc39_map);
}
module_init(init_rc_map_asus_pc39)
......
......@@ -43,7 +43,7 @@ static struct rc_map_table ati_tv_wonder_hd_600[] = {
{ 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 = {
.scan = 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 = {
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)
{
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)
......
......@@ -49,7 +49,7 @@ static struct rc_map_table avermedia_a16d[] = {
{ 0x2a, KEY_MENU},
};
static struct rc_keymap avermedia_a16d_map = {
static struct rc_map_list avermedia_a16d_map = {
.map = {
.scan = avermedia_a16d,
.size = ARRAY_SIZE(avermedia_a16d),
......@@ -60,12 +60,12 @@ static struct rc_keymap avermedia_a16d_map = {
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)
{
ir_unregister_map(&avermedia_a16d_map);
rc_map_unregister(&avermedia_a16d_map);
}
module_init(init_rc_map_avermedia_a16d)
......
......@@ -71,7 +71,7 @@ static struct rc_map_table avermedia_cardbus[] = {
{ 0x43, KEY_CHANNELUP }, /* Channel up */
};
static struct rc_keymap avermedia_cardbus_map = {
static struct rc_map_list avermedia_cardbus_map = {
.map = {
.scan = avermedia_cardbus,
.size = ARRAY_SIZE(avermedia_cardbus),
......@@ -82,12 +82,12 @@ static struct rc_keymap avermedia_cardbus_map = {
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)
{
ir_unregister_map(&avermedia_cardbus_map);
rc_map_unregister(&avermedia_cardbus_map);
}
module_init(init_rc_map_avermedia_cardbus)
......
......@@ -52,7 +52,7 @@ static struct rc_map_table avermedia_dvbt[] = {
{ 0x3e, KEY_VOLUMEUP }, /* 'volume +' */
};
static struct rc_keymap avermedia_dvbt_map = {
static struct rc_map_list avermedia_dvbt_map = {
.map = {
.scan = avermedia_dvbt,
.size = ARRAY_SIZE(avermedia_dvbt),
......@@ -63,12 +63,12 @@ static struct rc_keymap avermedia_dvbt_map = {
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)
{
ir_unregister_map(&avermedia_dvbt_map);
rc_map_unregister(&avermedia_dvbt_map);
}
module_init(init_rc_map_avermedia_dvbt)
......
......@@ -121,7 +121,7 @@ static struct rc_map_table avermedia_m135a[] = {
{ 0x041e, KEY_NEXT },
};
static struct rc_keymap avermedia_m135a_map = {
static struct rc_map_list avermedia_m135a_map = {
.map = {
.scan = avermedia_m135a,
.size = ARRAY_SIZE(avermedia_m135a),
......@@ -132,12 +132,12 @@ static struct rc_keymap avermedia_m135a_map = {
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)
{
ir_unregister_map(&avermedia_m135a_map);
rc_map_unregister(&avermedia_m135a_map);
}
module_init(init_rc_map_avermedia_m135a)
......
......@@ -69,7 +69,7 @@ static struct rc_map_table avermedia_m733a_rm_k6[] = {
{ 0x041e, KEY_NEXT },
};
static struct rc_keymap avermedia_m733a_rm_k6_map = {
static struct rc_map_list avermedia_m733a_rm_k6_map = {
.map = {
.scan = avermedia_m733a_rm_k6,
.size = ARRAY_SIZE(avermedia_m733a_rm_k6),
......@@ -80,12 +80,12 @@ static struct rc_keymap avermedia_m733a_rm_k6_map = {
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)
{
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)
......
......@@ -53,7 +53,7 @@ static struct rc_map_table avermedia_rm_ks[] = {
{ 0x0556, KEY_ZOOM },
};
static struct rc_keymap avermedia_rm_ks_map = {
static struct rc_map_list avermedia_rm_ks_map = {
.map = {
.scan = avermedia_rm_ks,
.size = ARRAY_SIZE(avermedia_rm_ks),
......@@ -64,12 +64,12 @@ static struct rc_keymap avermedia_rm_ks_map = {
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)
{
ir_unregister_map(&avermedia_rm_ks_map);
rc_map_unregister(&avermedia_rm_ks_map);
}
module_init(init_rc_map_avermedia_rm_ks)
......
......@@ -60,7 +60,7 @@ static struct rc_map_table avermedia[] = {
{ 0x31, KEY_CHANNELUP } /* CHANNEL/PAGE+ */
};
static struct rc_keymap avermedia_map = {
static struct rc_map_list avermedia_map = {
.map = {
.scan = avermedia,
.size = ARRAY_SIZE(avermedia),
......@@ -71,12 +71,12 @@ static struct rc_keymap avermedia_map = {
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)
{
ir_unregister_map(&avermedia_map);
rc_map_unregister(&avermedia_map);
}
module_init(init_rc_map_avermedia)
......
......@@ -59,7 +59,7 @@ static struct rc_map_table avertv_303[] = {
{ 0x1b, KEY_UP },
};
static struct rc_keymap avertv_303_map = {
static struct rc_map_list avertv_303_map = {
.map = {
.scan = avertv_303,
.size = ARRAY_SIZE(avertv_303),
......@@ -70,12 +70,12 @@ static struct rc_keymap avertv_303_map = {
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)
{
ir_unregister_map(&avertv_303_map);
rc_map_unregister(&avertv_303_map);
}
module_init(init_rc_map_avertv_303)
......
......@@ -76,7 +76,7 @@ static struct rc_map_table azurewave_ad_tu700[] = {
{ 0x005f, KEY_BLUE },
};
static struct rc_keymap azurewave_ad_tu700_map = {
static struct rc_map_list azurewave_ad_tu700_map = {
.map = {
.scan = azurewave_ad_tu700,
.size = ARRAY_SIZE(azurewave_ad_tu700),
......@@ -87,12 +87,12 @@ static struct rc_keymap azurewave_ad_tu700_map = {
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)
{
ir_unregister_map(&azurewave_ad_tu700_map);
rc_map_unregister(&azurewave_ad_tu700_map);
}
module_init(init_rc_map_azurewave_ad_tu700)
......
......@@ -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 = {
.scan = behold_columbus,
.size = ARRAY_SIZE(behold_columbus),
......@@ -93,12 +93,12 @@ static struct rc_keymap behold_columbus_map = {
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)
{
ir_unregister_map(&behold_columbus_map);
rc_map_unregister(&behold_columbus_map);
}
module_init(init_rc_map_behold_columbus)
......
......@@ -115,7 +115,7 @@ static struct rc_map_table behold[] = {
};
static struct rc_keymap behold_map = {
static struct rc_map_list behold_map = {
.map = {
.scan = behold,
.size = ARRAY_SIZE(behold),
......@@ -126,12 +126,12 @@ static struct rc_keymap behold_map = {
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)
{
ir_unregister_map(&behold_map);
rc_map_unregister(&behold_map);
}
module_init(init_rc_map_behold)
......
......@@ -66,7 +66,7 @@ static struct rc_map_table budget_ci_old[] = {
{ 0x3e, KEY_TUNER },
};
static struct rc_keymap budget_ci_old_map = {
static struct rc_map_list budget_ci_old_map = {
.map = {
.scan = budget_ci_old,
.size = ARRAY_SIZE(budget_ci_old),
......@@ -77,12 +77,12 @@ static struct rc_keymap budget_ci_old_map = {
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)
{
ir_unregister_map(&budget_ci_old_map);
rc_map_unregister(&budget_ci_old_map);
}
module_init(init_rc_map_budget_ci_old)
......
......@@ -58,7 +58,7 @@ static struct rc_map_table cinergy_1400[] = {
{ 0x5c, KEY_NEXT },
};
static struct rc_keymap cinergy_1400_map = {
static struct rc_map_list cinergy_1400_map = {
.map = {
.scan = cinergy_1400,
.size = ARRAY_SIZE(cinergy_1400),
......@@ -69,12 +69,12 @@ static struct rc_keymap cinergy_1400_map = {
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)
{
ir_unregister_map(&cinergy_1400_map);
rc_map_unregister(&cinergy_1400_map);
}
module_init(init_rc_map_cinergy_1400)
......
......@@ -52,7 +52,7 @@ static struct rc_map_table cinergy[] = {
{ 0x23, KEY_STOP },
};
static struct rc_keymap cinergy_map = {
static struct rc_map_list cinergy_map = {
.map = {
.scan = cinergy,
.size = ARRAY_SIZE(cinergy),
......@@ -63,12 +63,12 @@ static struct rc_keymap cinergy_map = {
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)
{
ir_unregister_map(&cinergy_map);
rc_map_unregister(&cinergy_map);
}
module_init(init_rc_map_cinergy)
......
......@@ -98,7 +98,7 @@ static struct rc_map_table dib0700_nec_table[] = {
{ 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 = {
.scan = dib0700_nec_table,
.size = ARRAY_SIZE(dib0700_nec_table),
......@@ -109,12 +109,12 @@ static struct rc_keymap dib0700_nec_map = {
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)
{
ir_unregister_map(&dib0700_nec_map);
rc_map_unregister(&dib0700_nec_map);
}
module_init(init_rc_map)
......
......@@ -209,7 +209,7 @@ static struct rc_map_table dib0700_rc5_table[] = {
{ 0x1d3d, KEY_POWER },
};
static struct rc_keymap dib0700_rc5_map = {
static struct rc_map_list dib0700_rc5_map = {
.map = {
.scan = dib0700_rc5_table,
.size = ARRAY_SIZE(dib0700_rc5_table),
......@@ -220,12 +220,12 @@ static struct rc_keymap dib0700_rc5_map = {
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)
{
ir_unregister_map(&dib0700_rc5_map);
rc_map_unregister(&dib0700_rc5_map);
}
module_init(init_rc_map)
......
......@@ -72,7 +72,7 @@ static struct rc_map_table digitalnow_tinytwin[] = {
{ 0x005a, KEY_PREVIOUS }, /* REPLAY */
};
static struct rc_keymap digitalnow_tinytwin_map = {
static struct rc_map_list digitalnow_tinytwin_map = {
.map = {
.scan = digitalnow_tinytwin,
.size = ARRAY_SIZE(digitalnow_tinytwin),
......@@ -83,12 +83,12 @@ static struct rc_keymap digitalnow_tinytwin_map = {
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)
{
ir_unregister_map(&digitalnow_tinytwin_map);
rc_map_unregister(&digitalnow_tinytwin_map);
}
module_init(init_rc_map_digitalnow_tinytwin)
......
......@@ -56,7 +56,7 @@ static struct rc_map_table digittrade[] = {
{ 0x0054, KEY_0 },
};
static struct rc_keymap digittrade_map = {
static struct rc_map_list digittrade_map = {
.map = {
.scan = digittrade,
.size = ARRAY_SIZE(digittrade),
......@@ -67,12 +67,12 @@ static struct rc_keymap digittrade_map = {
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)
{
ir_unregister_map(&digittrade_map);
rc_map_unregister(&digittrade_map);
}
module_init(init_rc_map_digittrade)
......
......@@ -50,7 +50,7 @@ static struct rc_map_table dm1105_nec[] = {
{ 0x1b, KEY_B}, /* recall */
};
static struct rc_keymap dm1105_nec_map = {
static struct rc_map_list dm1105_nec_map = {
.map = {
.scan = dm1105_nec,
.size = ARRAY_SIZE(dm1105_nec),
......@@ -61,12 +61,12 @@ static struct rc_keymap dm1105_nec_map = {
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)
{
ir_unregister_map(&dm1105_nec_map);
rc_map_unregister(&dm1105_nec_map);
}
module_init(init_rc_map_dm1105_nec)
......
......@@ -52,7 +52,7 @@ static struct rc_map_table dntv_live_dvb_t[] = {
{ 0x1f, KEY_VOLUMEDOWN },
};
static struct rc_keymap dntv_live_dvb_t_map = {
static struct rc_map_list dntv_live_dvb_t_map = {
.map = {
.scan = dntv_live_dvb_t,
.size = ARRAY_SIZE(dntv_live_dvb_t),
......@@ -63,12 +63,12 @@ static struct rc_keymap dntv_live_dvb_t_map = {
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)
{
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)
......
......@@ -71,7 +71,7 @@ static struct rc_map_table dntv_live_dvbt_pro[] = {
{ 0x5d, KEY_BLUE },
};
static struct rc_keymap dntv_live_dvbt_pro_map = {
static struct rc_map_list dntv_live_dvbt_pro_map = {
.map = {
.scan = dntv_live_dvbt_pro,
.size = ARRAY_SIZE(dntv_live_dvbt_pro),
......@@ -82,12 +82,12 @@ static struct rc_keymap dntv_live_dvbt_pro_map = {
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)
{
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)
......
......@@ -43,7 +43,7 @@ static struct rc_map_table em_terratec[] = {
{ 0x40, KEY_ZOOM },
};
static struct rc_keymap em_terratec_map = {
static struct rc_map_list em_terratec_map = {
.map = {
.scan = em_terratec,
.size = ARRAY_SIZE(em_terratec),
......@@ -54,12 +54,12 @@ static struct rc_keymap em_terratec_map = {
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)
{
ir_unregister_map(&em_terratec_map);
rc_map_unregister(&em_terratec_map);
}
module_init(init_rc_map_em_terratec)
......
......@@ -55,7 +55,7 @@ static struct rc_map_table encore_enltv_fm53[] = {
{ 0x47, KEY_SLEEP}, /* shutdown */
};
static struct rc_keymap encore_enltv_fm53_map = {
static struct rc_map_list encore_enltv_fm53_map = {
.map = {
.scan = encore_enltv_fm53,
.size = ARRAY_SIZE(encore_enltv_fm53),
......@@ -66,12 +66,12 @@ static struct rc_keymap encore_enltv_fm53_map = {
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)
{
ir_unregister_map(&encore_enltv_fm53_map);
rc_map_unregister(&encore_enltv_fm53_map);
}
module_init(init_rc_map_encore_enltv_fm53)
......
......@@ -86,7 +86,7 @@ static struct rc_map_table encore_enltv[] = {
{ 0x57, KEY_BLUE }, /* AP4 */
};
static struct rc_keymap encore_enltv_map = {
static struct rc_map_list encore_enltv_map = {
.map = {
.scan = encore_enltv,
.size = ARRAY_SIZE(encore_enltv),
......@@ -97,12 +97,12 @@ static struct rc_keymap encore_enltv_map = {
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)
{
ir_unregister_map(&encore_enltv_map);
rc_map_unregister(&encore_enltv_map);
}
module_init(init_rc_map_encore_enltv)
......
......@@ -64,7 +64,7 @@ static struct rc_map_table encore_enltv2[] = {
{ 0x79, KEY_STOP },
};
static struct rc_keymap encore_enltv2_map = {
static struct rc_map_list encore_enltv2_map = {
.map = {
.scan = encore_enltv2,
.size = ARRAY_SIZE(encore_enltv2),
......@@ -75,12 +75,12 @@ static struct rc_keymap encore_enltv2_map = {
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)
{
ir_unregister_map(&encore_enltv2_map);
rc_map_unregister(&encore_enltv2_map);
}
module_init(init_rc_map_encore_enltv2)
......
......@@ -35,7 +35,7 @@ static struct rc_map_table evga_indtube[] = {
{ 0x13, KEY_CAMERA},
};
static struct rc_keymap evga_indtube_map = {
static struct rc_map_list evga_indtube_map = {
.map = {
.scan = evga_indtube,
.size = ARRAY_SIZE(evga_indtube),
......@@ -46,12 +46,12 @@ static struct rc_keymap evga_indtube_map = {
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)
{
ir_unregister_map(&evga_indtube_map);
rc_map_unregister(&evga_indtube_map);
}
module_init(init_rc_map_evga_indtube)
......
......@@ -70,7 +70,7 @@ static struct rc_map_table eztv[] = {
{ 0x21, KEY_DOT }, /* . (decimal dot) */
};
static struct rc_keymap eztv_map = {
static struct rc_map_list eztv_map = {
.map = {
.scan = eztv,
.size = ARRAY_SIZE(eztv),
......@@ -81,12 +81,12 @@ static struct rc_keymap eztv_map = {
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)
{
ir_unregister_map(&eztv_map);
rc_map_unregister(&eztv_map);
}
module_init(init_rc_map_eztv)
......
......@@ -51,7 +51,7 @@ static struct rc_map_table flydvb[] = {
{ 0x0e, KEY_NEXT }, /* End >>| */
};
static struct rc_keymap flydvb_map = {
static struct rc_map_list flydvb_map = {
.map = {
.scan = flydvb,
.size = ARRAY_SIZE(flydvb),
......@@ -62,12 +62,12 @@ static struct rc_keymap flydvb_map = {
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)
{
ir_unregister_map(&flydvb_map);
rc_map_unregister(&flydvb_map);
}
module_init(init_rc_map_flydvb)
......
......@@ -44,7 +44,7 @@ static struct rc_map_table flyvideo[] = {
{ 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 = {
.scan = flyvideo,
.size = ARRAY_SIZE(flyvideo),
......@@ -55,12 +55,12 @@ static struct rc_keymap flyvideo_map = {
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)
{
ir_unregister_map(&flyvideo_map);
rc_map_unregister(&flyvideo_map);
}
module_init(init_rc_map_flyvideo)
......
......@@ -72,7 +72,7 @@ static struct rc_map_table fusionhdtv_mce[] = {
{ 0x4e, KEY_POWER },
};
static struct rc_keymap fusionhdtv_mce_map = {
static struct rc_map_list fusionhdtv_mce_map = {
.map = {
.scan = fusionhdtv_mce,
.size = ARRAY_SIZE(fusionhdtv_mce),
......@@ -83,12 +83,12 @@ static struct rc_keymap fusionhdtv_mce_map = {
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)
{
ir_unregister_map(&fusionhdtv_mce_map);
rc_map_unregister(&fusionhdtv_mce_map);
}
module_init(init_rc_map_fusionhdtv_mce)
......
......@@ -55,7 +55,7 @@ static struct rc_map_table gadmei_rm008z[] = {
{ 0x15, KEY_ENTER}, /* OK */
};
static struct rc_keymap gadmei_rm008z_map = {
static struct rc_map_list gadmei_rm008z_map = {
.map = {
.scan = gadmei_rm008z,
.size = ARRAY_SIZE(gadmei_rm008z),
......@@ -66,12 +66,12 @@ static struct rc_keymap gadmei_rm008z_map = {
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)
{
ir_unregister_map(&gadmei_rm008z_map);
rc_map_unregister(&gadmei_rm008z_map);
}
module_init(init_rc_map_gadmei_rm008z)
......
......@@ -58,7 +58,7 @@ static struct rc_map_table genius_tvgo_a11mce[] = {
{ 0x50, KEY_BLUE },
};
static struct rc_keymap genius_tvgo_a11mce_map = {
static struct rc_map_list genius_tvgo_a11mce_map = {
.map = {
.scan = genius_tvgo_a11mce,
.size = ARRAY_SIZE(genius_tvgo_a11mce),
......@@ -69,12 +69,12 @@ static struct rc_keymap genius_tvgo_a11mce_map = {
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)
{
ir_unregister_map(&genius_tvgo_a11mce_map);
rc_map_unregister(&genius_tvgo_a11mce_map);
}
module_init(init_rc_map_genius_tvgo_a11mce)
......
......@@ -53,7 +53,7 @@ static struct rc_map_table gotview7135[] = {
{ 0x38, KEY_F24 }, /* NORMAL TIMESHIFT */
};
static struct rc_keymap gotview7135_map = {
static struct rc_map_list gotview7135_map = {
.map = {
.scan = gotview7135,
.size = ARRAY_SIZE(gotview7135),
......@@ -64,12 +64,12 @@ static struct rc_keymap gotview7135_map = {
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)
{
ir_unregister_map(&gotview7135_map);
rc_map_unregister(&gotview7135_map);
}
module_init(init_rc_map_gotview7135)
......
......@@ -74,7 +74,7 @@ static struct rc_map_table hauppauge_new[] = {
{ 0x3d, KEY_POWER }, /* system power (green button) */
};
static struct rc_keymap hauppauge_new_map = {
static struct rc_map_list hauppauge_new_map = {
.map = {
.scan = hauppauge_new,
.size = ARRAY_SIZE(hauppauge_new),
......@@ -85,12 +85,12 @@ static struct rc_keymap hauppauge_new_map = {
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)
{
ir_unregister_map(&hauppauge_new_map);
rc_map_unregister(&hauppauge_new_map);
}
module_init(init_rc_map_hauppauge_new)
......
......@@ -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 = {
.scan = imon_mce,
.size = ARRAY_SIZE(imon_mce),
......@@ -127,12 +127,12 @@ static struct rc_keymap imon_mce_map = {
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)
{
ir_unregister_map(&imon_mce_map);
rc_map_unregister(&imon_mce_map);
}
module_init(init_rc_map_imon_mce)
......
......@@ -129,7 +129,7 @@ static struct rc_map_table imon_pad[] = {
{ 0x29b715b7, KEY_DASHBOARD }, /* AppLauncher */
};
static struct rc_keymap imon_pad_map = {
static struct rc_map_list imon_pad_map = {
.map = {
.scan = imon_pad,
.size = ARRAY_SIZE(imon_pad),
......@@ -141,12 +141,12 @@ static struct rc_keymap imon_pad_map = {
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)
{
ir_unregister_map(&imon_pad_map);
rc_map_unregister(&imon_pad_map);
}
module_init(init_rc_map_imon_pad)
......
......@@ -62,7 +62,7 @@ static struct rc_map_table iodata_bctv7e[] = {
{ 0x01, KEY_NEXT }, /* skip >| */
};
static struct rc_keymap iodata_bctv7e_map = {
static struct rc_map_list iodata_bctv7e_map = {
.map = {
.scan = iodata_bctv7e,
.size = ARRAY_SIZE(iodata_bctv7e),
......@@ -73,12 +73,12 @@ static struct rc_keymap iodata_bctv7e_map = {
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)
{
ir_unregister_map(&iodata_bctv7e_map);
rc_map_unregister(&iodata_bctv7e_map);
}
module_init(init_rc_map_iodata_bctv7e)
......
......@@ -61,7 +61,7 @@ static struct rc_map_table kaiomy[] = {
{ 0x1f, KEY_BLUE},
};
static struct rc_keymap kaiomy_map = {
static struct rc_map_list kaiomy_map = {
.map = {
.scan = kaiomy,
.size = ARRAY_SIZE(kaiomy),
......@@ -72,12 +72,12 @@ static struct rc_keymap kaiomy_map = {
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)
{
ir_unregister_map(&kaiomy_map);
rc_map_unregister(&kaiomy_map);
}
module_init(init_rc_map_kaiomy)
......
......@@ -57,7 +57,7 @@ static struct rc_map_table kworld_315u[] = {
{ 0x611f, KEY_BLUE },
};
static struct rc_keymap kworld_315u_map = {
static struct rc_map_list kworld_315u_map = {
.map = {
.scan = kworld_315u,
.size = ARRAY_SIZE(kworld_315u),
......@@ -68,12 +68,12 @@ static struct rc_keymap kworld_315u_map = {
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)
{
ir_unregister_map(&kworld_315u_map);
rc_map_unregister(&kworld_315u_map);
}
module_init(init_rc_map_kworld_315u)
......
......@@ -73,7 +73,7 @@ static struct rc_map_table kworld_plus_tv_analog[] = {
{ 0x23, KEY_GREEN}, /* C */
};
static struct rc_keymap kworld_plus_tv_analog_map = {
static struct rc_map_list kworld_plus_tv_analog_map = {
.map = {
.scan = kworld_plus_tv_analog,
.size = ARRAY_SIZE(kworld_plus_tv_analog),
......@@ -84,12 +84,12 @@ static struct rc_keymap kworld_plus_tv_analog_map = {
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)
{
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)
......
......@@ -73,7 +73,7 @@ static struct rc_map_table leadtek_y04g0051[] = {
{ 0x035f, KEY_CHANNELDOWN },
};
static struct rc_keymap leadtek_y04g0051_map = {
static struct rc_map_list leadtek_y04g0051_map = {
.map = {
.scan = leadtek_y04g0051,
.size = ARRAY_SIZE(leadtek_y04g0051),
......@@ -84,12 +84,12 @@ static struct rc_keymap leadtek_y04g0051_map = {
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)
{
ir_unregister_map(&leadtek_y04g0051_map);
rc_map_unregister(&leadtek_y04g0051_map);
}
module_init(init_rc_map_leadtek_y04g0051)
......
......@@ -15,7 +15,7 @@ static struct rc_map_table lirc[] = {
{ },
};
static struct rc_keymap lirc_map = {
static struct rc_map_list lirc_map = {
.map = {
.scan = lirc,
.size = ARRAY_SIZE(lirc),
......@@ -26,12 +26,12 @@ static struct rc_keymap lirc_map = {
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)
{
ir_unregister_map(&lirc_map);
rc_map_unregister(&lirc_map);
}
module_init(init_rc_map_lirc)
......
......@@ -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 = {
.scan = lme2510_rc,
.size = ARRAY_SIZE(lme2510_rc),
......@@ -53,12 +53,12 @@ static struct rc_keymap lme2510_map = {
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)
{
ir_unregister_map(&lme2510_map);
rc_map_unregister(&lme2510_map);
}
module_init(init_rc_lme2510_map)
......
......@@ -108,7 +108,7 @@ static struct rc_map_table manli[] = {
/* 0x1d unused ? */
};
static struct rc_keymap manli_map = {
static struct rc_map_list manli_map = {
.map = {
.scan = manli,
.size = ARRAY_SIZE(manli),
......@@ -119,12 +119,12 @@ static struct rc_keymap manli_map = {
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)
{
ir_unregister_map(&manli_map);
rc_map_unregister(&manli_map);
}
module_init(init_rc_map_manli)
......
......@@ -41,7 +41,7 @@ static struct rc_map_table msi_digivox_ii[] = {
{ 0x001f, KEY_VOLUMEDOWN },
};
static struct rc_keymap msi_digivox_ii_map = {
static struct rc_map_list msi_digivox_ii_map = {
.map = {
.scan = msi_digivox_ii,
.size = ARRAY_SIZE(msi_digivox_ii),
......@@ -52,12 +52,12 @@ static struct rc_keymap msi_digivox_ii_map = {
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)
{
ir_unregister_map(&msi_digivox_ii_map);
rc_map_unregister(&msi_digivox_ii_map);
}
module_init(init_rc_map_msi_digivox_ii)
......
......@@ -59,7 +59,7 @@ static struct rc_map_table msi_digivox_iii[] = {
{ 0x61d643, KEY_POWER2 }, /* [red power button] */
};
static struct rc_keymap msi_digivox_iii_map = {
static struct rc_map_list msi_digivox_iii_map = {
.map = {
.scan = msi_digivox_iii,
.size = ARRAY_SIZE(msi_digivox_iii),
......@@ -70,12 +70,12 @@ static struct rc_keymap msi_digivox_iii_map = {
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)
{
ir_unregister_map(&msi_digivox_iii_map);
rc_map_unregister(&msi_digivox_iii_map);
}
module_init(init_rc_map_msi_digivox_iii)
......
......@@ -97,7 +97,7 @@ static struct rc_map_table msi_tvanywhere_plus[] = {
{ 0x1d, KEY_RESTART }, /* Reset */
};
static struct rc_keymap msi_tvanywhere_plus_map = {
static struct rc_map_list msi_tvanywhere_plus_map = {
.map = {
.scan = msi_tvanywhere_plus,
.size = ARRAY_SIZE(msi_tvanywhere_plus),
......@@ -108,12 +108,12 @@ static struct rc_keymap msi_tvanywhere_plus_map = {
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)
{
ir_unregister_map(&msi_tvanywhere_plus_map);
rc_map_unregister(&msi_tvanywhere_plus_map);
}
module_init(init_rc_map_msi_tvanywhere_plus)
......
......@@ -43,7 +43,7 @@ static struct rc_map_table msi_tvanywhere[] = {
{ 0x1f, KEY_VOLUMEDOWN },
};
static struct rc_keymap msi_tvanywhere_map = {
static struct rc_map_list msi_tvanywhere_map = {
.map = {
.scan = msi_tvanywhere,
.size = ARRAY_SIZE(msi_tvanywhere),
......@@ -54,12 +54,12 @@ static struct rc_keymap msi_tvanywhere_map = {
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)
{
ir_unregister_map(&msi_tvanywhere_map);
rc_map_unregister(&msi_tvanywhere_map);
}
module_init(init_rc_map_msi_tvanywhere)
......
......@@ -70,7 +70,7 @@ static struct rc_map_table nebula[] = {
{ 0x36, KEY_PC },
};
static struct rc_keymap nebula_map = {
static struct rc_map_list nebula_map = {
.map = {
.scan = nebula,
.size = ARRAY_SIZE(nebula),
......@@ -81,12 +81,12 @@ static struct rc_keymap nebula_map = {
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)
{
ir_unregister_map(&nebula_map);
rc_map_unregister(&nebula_map);
}
module_init(init_rc_map_nebula)
......
......@@ -79,7 +79,7 @@ static struct rc_map_table nec_terratec_cinergy_xs[] = {
{ 0x145c, KEY_NEXT},
};
static struct rc_keymap nec_terratec_cinergy_xs_map = {
static struct rc_map_list nec_terratec_cinergy_xs_map = {
.map = {
.scan = nec_terratec_cinergy_xs,
.size = ARRAY_SIZE(nec_terratec_cinergy_xs),
......@@ -90,12 +90,12 @@ static struct rc_keymap nec_terratec_cinergy_xs_map = {
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)
{
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)
......
......@@ -59,7 +59,7 @@ static struct rc_map_table norwood[] = {
{ 0x65, KEY_POWER }, /* Computer power */
};
static struct rc_keymap norwood_map = {
static struct rc_map_list norwood_map = {
.map = {
.scan = norwood,
.size = ARRAY_SIZE(norwood),
......@@ -70,12 +70,12 @@ static struct rc_keymap norwood_map = {
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)
{
ir_unregister_map(&norwood_map);
rc_map_unregister(&norwood_map);
}
module_init(init_rc_map_norwood)
......
......@@ -54,7 +54,7 @@ static struct rc_map_table npgtech[] = {
};
static struct rc_keymap npgtech_map = {
static struct rc_map_list npgtech_map = {
.map = {
.scan = npgtech,
.size = ARRAY_SIZE(npgtech),
......@@ -65,12 +65,12 @@ static struct rc_keymap npgtech_map = {
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)
{
ir_unregister_map(&npgtech_map);
rc_map_unregister(&npgtech_map);
}
module_init(init_rc_map_npgtech)
......
......@@ -54,7 +54,7 @@ static struct rc_map_table pctv_sedna[] = {
{ 0x1f, KEY_PLAY }, /* Play */
};
static struct rc_keymap pctv_sedna_map = {
static struct rc_map_list pctv_sedna_map = {
.map = {
.scan = pctv_sedna,
.size = ARRAY_SIZE(pctv_sedna),
......@@ -65,12 +65,12 @@ static struct rc_keymap pctv_sedna_map = {
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)
{
ir_unregister_map(&pctv_sedna_map);
rc_map_unregister(&pctv_sedna_map);
}
module_init(init_rc_map_pctv_sedna)
......
......@@ -68,7 +68,7 @@ static struct rc_map_table pinnacle_color[] = {
{ 0x0a, KEY_BACKSPACE },
};
static struct rc_keymap pinnacle_color_map = {
static struct rc_map_list pinnacle_color_map = {
.map = {
.scan = pinnacle_color,
.size = ARRAY_SIZE(pinnacle_color),
......@@ -79,12 +79,12 @@ static struct rc_keymap pinnacle_color_map = {
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)
{
ir_unregister_map(&pinnacle_color_map);
rc_map_unregister(&pinnacle_color_map);
}
module_init(init_rc_map_pinnacle_color)
......
......@@ -63,7 +63,7 @@ static struct rc_map_table pinnacle_grey[] = {
{ 0x18, KEY_EPG },
};
static struct rc_keymap pinnacle_grey_map = {
static struct rc_map_list pinnacle_grey_map = {
.map = {
.scan = pinnacle_grey,
.size = ARRAY_SIZE(pinnacle_grey),
......@@ -74,12 +74,12 @@ static struct rc_keymap pinnacle_grey_map = {
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)
{
ir_unregister_map(&pinnacle_grey_map);
rc_map_unregister(&pinnacle_grey_map);
}
module_init(init_rc_map_pinnacle_grey)
......
......@@ -47,7 +47,7 @@ static struct rc_map_table pinnacle_pctv_hd[] = {
{ 0x3f, KEY_EPG }, /* Labeled "?" */
};
static struct rc_keymap pinnacle_pctv_hd_map = {
static struct rc_map_list pinnacle_pctv_hd_map = {
.map = {
.scan = pinnacle_pctv_hd,
.size = ARRAY_SIZE(pinnacle_pctv_hd),
......@@ -58,12 +58,12 @@ static struct rc_keymap pinnacle_pctv_hd_map = {
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)
{
ir_unregister_map(&pinnacle_pctv_hd_map);
rc_map_unregister(&pinnacle_pctv_hd_map);
}
module_init(init_rc_map_pinnacle_pctv_hd)
......
......@@ -57,7 +57,7 @@ static struct rc_map_table pixelview_mk12[] = {
{ 0x866b07, KEY_RADIO }, /* FM */
};
static struct rc_keymap pixelview_map = {
static struct rc_map_list pixelview_map = {
.map = {
.scan = pixelview_mk12,
.size = ARRAY_SIZE(pixelview_mk12),
......@@ -68,12 +68,12 @@ static struct rc_keymap pixelview_map = {
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)
{
ir_unregister_map(&pixelview_map);
rc_map_unregister(&pixelview_map);
}
module_init(init_rc_map_pixelview)
......
......@@ -57,7 +57,7 @@ static struct rc_map_table pixelview_new[] = {
{ 0x34, KEY_RADIO },
};
static struct rc_keymap pixelview_new_map = {
static struct rc_map_list pixelview_new_map = {
.map = {
.scan = pixelview_new,
.size = ARRAY_SIZE(pixelview_new),
......@@ -68,12 +68,12 @@ static struct rc_keymap pixelview_new_map = {
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)
{
ir_unregister_map(&pixelview_new_map);
rc_map_unregister(&pixelview_new_map);
}
module_init(init_rc_map_pixelview_new)
......
......@@ -56,7 +56,7 @@ static struct rc_map_table pixelview[] = {
{ 0x18, KEY_MUTE }, /* mute/unmute */
};
static struct rc_keymap pixelview_map = {
static struct rc_map_list pixelview_map = {
.map = {
.scan = pixelview,
.size = ARRAY_SIZE(pixelview),
......@@ -67,12 +67,12 @@ static struct rc_keymap pixelview_map = {
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)
{
ir_unregister_map(&pixelview_map);
rc_map_unregister(&pixelview_map);
}
module_init(init_rc_map_pixelview)
......
......@@ -55,7 +55,7 @@ static struct rc_map_table powercolor_real_angel[] = {
{ 0x25, KEY_POWER }, /* power */
};
static struct rc_keymap powercolor_real_angel_map = {
static struct rc_map_list powercolor_real_angel_map = {
.map = {
.scan = powercolor_real_angel,
.size = ARRAY_SIZE(powercolor_real_angel),
......@@ -66,12 +66,12 @@ static struct rc_keymap powercolor_real_angel_map = {
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)
{
ir_unregister_map(&powercolor_real_angel_map);
rc_map_unregister(&powercolor_real_angel_map);
}
module_init(init_rc_map_powercolor_real_angel)
......
......@@ -43,7 +43,7 @@ static struct rc_map_table proteus_2309[] = {
{ 0x14, KEY_F1 },
};
static struct rc_keymap proteus_2309_map = {
static struct rc_map_list proteus_2309_map = {
.map = {
.scan = proteus_2309,
.size = ARRAY_SIZE(proteus_2309),
......@@ -54,12 +54,12 @@ static struct rc_keymap proteus_2309_map = {
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)
{
ir_unregister_map(&proteus_2309_map);
rc_map_unregister(&proteus_2309_map);
}
module_init(init_rc_map_proteus_2309)
......
......@@ -55,7 +55,7 @@ static struct rc_map_table purpletv[] = {
};
static struct rc_keymap purpletv_map = {
static struct rc_map_list purpletv_map = {
.map = {
.scan = purpletv,
.size = ARRAY_SIZE(purpletv),
......@@ -66,12 +66,12 @@ static struct rc_keymap purpletv_map = {
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)
{
ir_unregister_map(&purpletv_map);
rc_map_unregister(&purpletv_map);
}
module_init(init_rc_map_purpletv)
......
......@@ -52,7 +52,7 @@ static struct rc_map_table pv951[] = {
{ 0x1c, KEY_MEDIA }, /* PC/TV */
};
static struct rc_keymap pv951_map = {
static struct rc_map_list pv951_map = {
.map = {
.scan = pv951,
.size = ARRAY_SIZE(pv951),
......@@ -63,12 +63,12 @@ static struct rc_keymap pv951_map = {
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)
{
ir_unregister_map(&pv951_map);
rc_map_unregister(&pv951_map);
}
module_init(init_rc_map_pv951)
......
......@@ -77,7 +77,7 @@ static struct rc_map_table rc5_hauppauge_new[] = {
{ 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 = {
.scan = rc5_hauppauge_new,
.size = ARRAY_SIZE(rc5_hauppauge_new),
......@@ -88,12 +88,12 @@ static struct rc_keymap rc5_hauppauge_new_map = {
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)
{
ir_unregister_map(&rc5_hauppauge_new_map);
rc_map_unregister(&rc5_hauppauge_new_map);
}
module_init(init_rc_map_rc5_hauppauge_new)
......
......@@ -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 = {
.scan = rc5_tv,
.size = ARRAY_SIZE(rc5_tv),
......@@ -66,12 +66,12 @@ static struct rc_keymap rc5_tv_map = {
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)
{
ir_unregister_map(&rc5_tv_map);
rc_map_unregister(&rc5_tv_map);
}
module_init(init_rc_map_rc5_tv)
......
......@@ -87,7 +87,7 @@ static struct rc_map_table rc6_mce[] = {
{ 0x800f0481, KEY_PLAYPAUSE },
};
static struct rc_keymap rc6_mce_map = {
static struct rc_map_list rc6_mce_map = {
.map = {
.scan = rc6_mce,
.size = ARRAY_SIZE(rc6_mce),
......@@ -98,12 +98,12 @@ static struct rc_keymap rc6_mce_map = {
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)
{
ir_unregister_map(&rc6_mce_map);
rc_map_unregister(&rc6_mce_map);
}
module_init(init_rc_map_rc6_mce)
......
......@@ -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 = {
.scan = 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 = {
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)
{
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)
......
......@@ -56,7 +56,7 @@ static struct rc_map_table streamzap[] = {
};
static struct rc_keymap streamzap_map = {
static struct rc_map_list streamzap_map = {
.map = {
.scan = streamzap,
.size = ARRAY_SIZE(streamzap),
......@@ -67,12 +67,12 @@ static struct rc_keymap streamzap_map = {
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)
{
ir_unregister_map(&streamzap_map);
rc_map_unregister(&streamzap_map);
}
module_init(init_rc_map_streamzap)
......
......@@ -47,7 +47,7 @@ static struct rc_map_table tbs_nec[] = {
{ 0x1b, KEY_MODE},
};
static struct rc_keymap tbs_nec_map = {
static struct rc_map_list tbs_nec_map = {
.map = {
.scan = tbs_nec,
.size = ARRAY_SIZE(tbs_nec),
......@@ -58,12 +58,12 @@ static struct rc_keymap tbs_nec_map = {
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)
{
ir_unregister_map(&tbs_nec_map);
rc_map_unregister(&tbs_nec_map);
}
module_init(init_rc_map_tbs_nec)
......
......@@ -66,7 +66,7 @@ static struct rc_map_table terratec_cinergy_xs[] = {
{ 0x5c, KEY_NEXT},
};
static struct rc_keymap terratec_cinergy_xs_map = {
static struct rc_map_list terratec_cinergy_xs_map = {
.map = {
.scan = terratec_cinergy_xs,
.size = ARRAY_SIZE(terratec_cinergy_xs),
......@@ -77,12 +77,12 @@ static struct rc_keymap terratec_cinergy_xs_map = {
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)
{
ir_unregister_map(&terratec_cinergy_xs_map);
rc_map_unregister(&terratec_cinergy_xs_map);
}
module_init(init_rc_map_terratec_cinergy_xs)
......
......@@ -53,7 +53,7 @@ static struct rc_map_table terratec_slim[] = {
{ 0x02bd45, KEY_POWER2 }, /* [red power button] */
};
static struct rc_keymap terratec_slim_map = {
static struct rc_map_list terratec_slim_map = {
.map = {
.scan = terratec_slim,
.size = ARRAY_SIZE(terratec_slim),
......@@ -64,12 +64,12 @@ static struct rc_keymap terratec_slim_map = {
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)
{
ir_unregister_map(&terratec_slim_map);
rc_map_unregister(&terratec_slim_map);
}
module_init(init_rc_map_terratec_slim)
......
......@@ -62,7 +62,7 @@ static struct rc_map_table tevii_nec[] = {
{ 0x58, KEY_SWITCHVIDEOMODE},
};
static struct rc_keymap tevii_nec_map = {
static struct rc_map_list tevii_nec_map = {
.map = {
.scan = tevii_nec,
.size = ARRAY_SIZE(tevii_nec),
......@@ -73,12 +73,12 @@ static struct rc_keymap tevii_nec_map = {
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)
{
ir_unregister_map(&tevii_nec_map);
rc_map_unregister(&tevii_nec_map);
}
module_init(init_rc_map_tevii_nec)
......
......@@ -59,7 +59,7 @@ static struct rc_map_table total_media_in_hand[] = {
{ 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 = {
.scan = total_media_in_hand,
.size = ARRAY_SIZE(total_media_in_hand),
......@@ -70,12 +70,12 @@ static struct rc_keymap total_media_in_hand_map = {
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)
{
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)
......
......@@ -54,7 +54,7 @@ static struct rc_map_table trekstor[] = {
{ 0x009f, KEY_LEFT }, /* Left */
};
static struct rc_keymap trekstor_map = {
static struct rc_map_list trekstor_map = {
.map = {
.scan = trekstor,
.size = ARRAY_SIZE(trekstor),
......@@ -65,12 +65,12 @@ static struct rc_keymap trekstor_map = {
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)
{
ir_unregister_map(&trekstor_map);
rc_map_unregister(&trekstor_map);
}
module_init(init_rc_map_trekstor)
......
......@@ -56,7 +56,7 @@ static struct rc_map_table tt_1500[] = {
{ 0x3f, KEY_FORWARD },
};
static struct rc_keymap tt_1500_map = {
static struct rc_map_list tt_1500_map = {
.map = {
.scan = tt_1500,
.size = ARRAY_SIZE(tt_1500),
......@@ -67,12 +67,12 @@ static struct rc_keymap tt_1500_map = {
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)
{
ir_unregister_map(&tt_1500_map);
rc_map_unregister(&tt_1500_map);
}
module_init(init_rc_map_tt_1500)
......
......@@ -61,7 +61,7 @@ static struct rc_map_table twinhan_vp1027[] = {
{ 0x5f, KEY_BLUE },
};
static struct rc_keymap twinhan_vp1027_map = {
static struct rc_map_list twinhan_vp1027_map = {
.map = {
.scan = twinhan_vp1027,
.size = ARRAY_SIZE(twinhan_vp1027),
......@@ -72,12 +72,12 @@ static struct rc_keymap twinhan_vp1027_map = {
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)
{
ir_unregister_map(&twinhan_vp1027_map);
rc_map_unregister(&twinhan_vp1027_map);
}
module_init(init_rc_map_twinhan_vp1027)
......
......@@ -59,7 +59,7 @@ static struct rc_map_table videomate_s350[] = {
{ 0x20, KEY_TEXT},
};
static struct rc_keymap videomate_s350_map = {
static struct rc_map_list videomate_s350_map = {
.map = {
.scan = videomate_s350,
.size = ARRAY_SIZE(videomate_s350),
......@@ -70,12 +70,12 @@ static struct rc_keymap videomate_s350_map = {
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)
{
ir_unregister_map(&videomate_s350_map);
rc_map_unregister(&videomate_s350_map);
}
module_init(init_rc_map_videomate_s350)
......
......@@ -61,7 +61,7 @@ static struct rc_map_table videomate_tv_pvr[] = {
{ 0x21, KEY_SLEEP },
};
static struct rc_keymap videomate_tv_pvr_map = {
static struct rc_map_list videomate_tv_pvr_map = {
.map = {
.scan = videomate_tv_pvr,
.size = ARRAY_SIZE(videomate_tv_pvr),
......@@ -72,12 +72,12 @@ static struct rc_keymap videomate_tv_pvr_map = {
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)
{
ir_unregister_map(&videomate_tv_pvr_map);
rc_map_unregister(&videomate_tv_pvr_map);
}
module_init(init_rc_map_videomate_tv_pvr)
......
......@@ -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 = {
.scan = winfast_usbii_deluxe,
.size = ARRAY_SIZE(winfast_usbii_deluxe),
......@@ -67,12 +67,12 @@ static struct rc_keymap winfast_usbii_deluxe_map = {
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)
{
ir_unregister_map(&winfast_usbii_deluxe_map);
rc_map_unregister(&winfast_usbii_deluxe_map);
}
module_init(init_rc_map_winfast_usbii_deluxe)
......
......@@ -76,7 +76,7 @@ static struct rc_map_table winfast[] = {
{ 0x3f, KEY_F24 } /* MCE -CH, on Y04G0033 */
};
static struct rc_keymap winfast_map = {
static struct rc_map_list winfast_map = {
.map = {
.scan = winfast,
.size = ARRAY_SIZE(winfast),
......@@ -87,12 +87,12 @@ static struct rc_keymap winfast_map = {
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)
{
ir_unregister_map(&winfast_map);
rc_map_unregister(&winfast_map);
}
module_init(init_rc_map_winfast)
......
......@@ -31,9 +31,9 @@
static LIST_HEAD(rc_map_list);
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);
list_for_each_entry(map, &rc_map_list, list) {
......@@ -47,10 +47,10 @@ static struct rc_keymap *seek_rc_map(const char *name)
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);
#ifdef MODULE
......@@ -74,31 +74,31 @@ struct rc_map *get_rc_map(const char *name)
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);
list_add_tail(&map->list, &rc_map_list);
spin_unlock(&rc_map_lock);
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);
list_del(&map->list);
spin_unlock(&rc_map_lock);
}
EXPORT_SYMBOL_GPL(ir_unregister_map);
EXPORT_SYMBOL_GPL(rc_map_unregister);
static struct rc_map_table empty[] = {
{ 0x2a, KEY_COFFEE },
};
static struct rc_keymap empty_map = {
static struct rc_map_list empty_map = {
.map = {
.scan = empty,
.size = ARRAY_SIZE(empty),
......@@ -996,9 +996,9 @@ int rc_register_device(struct rc_dev *dev)
if (!dev || !dev->map_name)
return -EINVAL;
rc_map = get_rc_map(dev->map_name);
rc_map = rc_map_get(dev->map_name);
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)
return -EINVAL;
......@@ -1113,7 +1113,7 @@ static int __init rc_core_init(void)
/* Initialize/load the decoders/keymap code that will be used */
ir_raw_init();
ir_register_map(&empty_map);
rc_map_register(&empty_map);
return 0;
}
......@@ -1121,7 +1121,7 @@ static int __init rc_core_init(void)
static void __exit rc_core_exit(void)
{
class_unregister(&ir_input_class);
ir_unregister_map(&empty_map);
rc_map_unregister(&empty_map);
}
module_init(rc_core_init);
......
......@@ -40,16 +40,16 @@ struct rc_map {
spinlock_t lock;
};
struct rc_keymap {
struct rc_map_list {
struct list_head list;
struct rc_map map;
};
/* Routines from rc-map.c */
int ir_register_map(struct rc_keymap *map);
void ir_unregister_map(struct rc_keymap *map);
struct rc_map *get_rc_map(const char *name);
int rc_map_register(struct rc_map_list *map);
void rc_map_unregister(struct rc_map_list *map);
struct rc_map *rc_map_get(const char *name);
void rc_map_init(void);
/* Names of the several keytables defined in-kernel */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册