0001
0002
0003
0004 #include <media/rc-map.h>
0005 #include <linux/module.h>
0006
0007
0008
0009
0010
0011 static struct rc_map_table wetek_hub[] = {
0012 { 0x77f1, KEY_POWER },
0013
0014 { 0x77f2, KEY_HOME },
0015 { 0x77f3, KEY_MUTE },
0016
0017 { 0x77f4, KEY_UP },
0018 { 0x77f5, KEY_DOWN },
0019 { 0x77f6, KEY_LEFT },
0020 { 0x77f7, KEY_RIGHT },
0021 { 0x77f8, KEY_OK },
0022
0023 { 0x77f9, KEY_BACK },
0024 { 0x77fa, KEY_MENU },
0025
0026 { 0x77fb, KEY_VOLUMEUP },
0027 { 0x77fc, KEY_VOLUMEDOWN },
0028 };
0029
0030 static struct rc_map_list wetek_hub_map = {
0031 .map = {
0032 .scan = wetek_hub,
0033 .size = ARRAY_SIZE(wetek_hub),
0034 .rc_proto = RC_PROTO_NEC,
0035 .name = RC_MAP_WETEK_HUB,
0036 }
0037 };
0038
0039 static int __init init_rc_map_wetek_hub(void)
0040 {
0041 return rc_map_register(&wetek_hub_map);
0042 }
0043
0044 static void __exit exit_rc_map_wetek_hub(void)
0045 {
0046 rc_map_unregister(&wetek_hub_map);
0047 }
0048
0049 module_init(init_rc_map_wetek_hub)
0050 module_exit(exit_rc_map_wetek_hub)
0051
0052 MODULE_LICENSE("GPL");
0053 MODULE_AUTHOR("Christian Hewitt <christianshewitt@gmail.com>");