1 // SPDX-License-Identifier: GPL-2.0+
2 // Copyright (c) 2018 Christian Hewitt
4 #include <media/rc-map.h>
5 #include <linux/module.h>
8 * This keymap is used with the WeTek Hub STB.
11 static struct rc_map_table wetek_hub[] = {
12 { 0x77f1, KEY_POWER },
15 { 0x77f3, KEY_MUTE }, // mouse
20 { 0x77f7, KEY_RIGHT },
26 { 0x77fb, KEY_VOLUMEUP },
27 { 0x77fc, KEY_VOLUMEDOWN },
30 static struct rc_map_list wetek_hub_map = {
33 .size = ARRAY_SIZE(wetek_hub),
34 .rc_proto = RC_PROTO_NEC,
35 .name = RC_MAP_WETEK_HUB,
39 static int __init init_rc_map_wetek_hub(void)
41 return rc_map_register(&wetek_hub_map);
44 static void __exit exit_rc_map_wetek_hub(void)
46 rc_map_unregister(&wetek_hub_map);
49 module_init(init_rc_map_wetek_hub)
50 module_exit(exit_rc_map_wetek_hub)
52 MODULE_LICENSE("GPL");