1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* Keytable for Wideview WT-220U.
4 * Copyright (c) 2016 Jonathan McDowell <noodles@earth.li>
7 #include <media/rc-map.h>
8 #include <linux/module.h>
10 /* key list for the tiny remote control (Yakumo, don't know about the others) */
11 static struct rc_map_table dtt200u_table
[] = {
13 { 0x8002, KEY_CHANNELDOWN
},
14 { 0x8003, KEY_VOLUMEDOWN
},
15 { 0x8004, KEY_NUMERIC_1
},
16 { 0x8005, KEY_NUMERIC_2
},
17 { 0x8006, KEY_NUMERIC_3
},
18 { 0x8007, KEY_NUMERIC_4
},
19 { 0x8008, KEY_NUMERIC_5
},
20 { 0x8009, KEY_NUMERIC_6
},
21 { 0x800a, KEY_NUMERIC_7
},
23 { 0x800d, KEY_NUMERIC_0
},
24 { 0x800e, KEY_SELECT
},
25 { 0x8012, KEY_POWER
},
26 { 0x801a, KEY_CHANNELUP
},
27 { 0x801b, KEY_NUMERIC_8
},
28 { 0x801e, KEY_VOLUMEUP
},
29 { 0x801f, KEY_NUMERIC_9
},
32 static struct rc_map_list dtt200u_map
= {
34 .scan
= dtt200u_table
,
35 .size
= ARRAY_SIZE(dtt200u_table
),
36 .rc_proto
= RC_PROTO_NEC
,
37 .name
= RC_MAP_DTT200U
,
41 static int __init
init_rc_map_dtt200u(void)
43 return rc_map_register(&dtt200u_map
);
46 static void __exit
exit_rc_map_dtt200u(void)
48 rc_map_unregister(&dtt200u_map
);
51 module_init(init_rc_map_dtt200u
)
52 module_exit(exit_rc_map_dtt200u
)
54 MODULE_LICENSE("GPL");
55 MODULE_AUTHOR("Jonathan McDowell <noodles@earth.li>");