0001
0002
0003
0004
0005
0006
0007
0008
0009 #include <media/rc-map.h>
0010 #include <linux/module.h>
0011
0012 static struct rc_map_table khadas[] = {
0013 { 0x14, KEY_POWER },
0014
0015 { 0x03, KEY_UP },
0016 { 0x02, KEY_DOWN },
0017 { 0x0e, KEY_LEFT },
0018 { 0x1a, KEY_RIGHT },
0019 { 0x07, KEY_OK },
0020
0021 { 0x01, KEY_BACK },
0022 { 0x5b, KEY_MUTE },
0023 { 0x13, KEY_MENU },
0024
0025 { 0x58, KEY_VOLUMEDOWN },
0026 { 0x0b, KEY_VOLUMEUP },
0027
0028 { 0x48, KEY_HOME },
0029 };
0030
0031 static struct rc_map_list khadas_map = {
0032 .map = {
0033 .scan = khadas,
0034 .size = ARRAY_SIZE(khadas),
0035 .rc_proto = RC_PROTO_NEC,
0036 .name = RC_MAP_KHADAS,
0037 }
0038 };
0039
0040 static int __init init_rc_map_khadas(void)
0041 {
0042 return rc_map_register(&khadas_map);
0043 }
0044
0045 static void __exit exit_rc_map_khadas(void)
0046 {
0047 rc_map_unregister(&khadas_map);
0048 }
0049
0050 module_init(init_rc_map_khadas)
0051 module_exit(exit_rc_map_khadas)
0052
0053 MODULE_LICENSE("GPL");
0054 MODULE_AUTHOR("Christian Hewitt <christianshewitt@gmail.com>");