1 /* Keytable for Wideview WT-220U.
3 * Copyright (c) 2016 Jonathan McDowell <noodles@earth.li>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
11 #include <media/rc-map.h>
12 #include <linux/module.h>
14 /* key list for the tiny remote control (Yakumo, don't know about the others) */
15 static struct rc_map_table dtt200u_table[] = {
17 { 0x8002, KEY_CHANNELDOWN },
18 { 0x8003, KEY_VOLUMEDOWN },
28 { 0x800e, KEY_SELECT },
29 { 0x8012, KEY_POWER },
30 { 0x801a, KEY_CHANNELUP },
32 { 0x801e, KEY_VOLUMEUP },
36 static struct rc_map_list dtt200u_map = {
38 .scan = dtt200u_table,
39 .size = ARRAY_SIZE(dtt200u_table),
40 .rc_proto = RC_PROTO_NEC,
41 .name = RC_MAP_DTT200U,
45 static int __init init_rc_map_dtt200u(void)
47 return rc_map_register(&dtt200u_map);
50 static void __exit exit_rc_map_dtt200u(void)
52 rc_map_unregister(&dtt200u_map);
55 module_init(init_rc_map_dtt200u)
56 module_exit(exit_rc_map_dtt200u)
58 MODULE_LICENSE("GPL");
59 MODULE_AUTHOR("Jonathan McDowell <noodles@earth.li>");