1 /* kworld-315u.h - Keytable for kworld_315u Remote Controller
3 * keymap imported from ir-keymaps.c
5 * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
13 #include <media/rc-map.h>
14 #include <linux/module.h>
19 static struct rc_map_table kworld_315u
[] = {
20 { 0x6143, KEY_POWER
},
21 { 0x6101, KEY_VIDEO
}, /* source */
23 { 0x6103, KEY_POWER2
}, /* shutdown */
28 { 0x6109, KEY_CHANNELUP
},
33 { 0x6107, KEY_CHANNELDOWN
},
38 { 0x610e, KEY_VOLUMEUP
},
42 { 0x6112, KEY_ENTER
},
43 { 0x6113, KEY_VOLUMEDOWN
},
45 { 0x6114, KEY_RECORD
},
53 { 0x611b, KEY_RIGHT
},
56 { 0x611d, KEY_GREEN
},
57 { 0x611e, KEY_YELLOW
},
61 static struct rc_map_list kworld_315u_map
= {
64 .size
= ARRAY_SIZE(kworld_315u
),
65 .rc_type
= RC_TYPE_NEC
,
66 .name
= RC_MAP_KWORLD_315U
,
70 static int __init
init_rc_map_kworld_315u(void)
72 return rc_map_register(&kworld_315u_map
);
75 static void __exit
exit_rc_map_kworld_315u(void)
77 rc_map_unregister(&kworld_315u_map
);
80 module_init(init_rc_map_kworld_315u
)
81 module_exit(exit_rc_map_kworld_315u
)
83 MODULE_LICENSE("GPL");
84 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");