2 * Keytable for the GeekBox remote controller
4 * Copyright (C) 2017 Martin Blumenstingl <martin.blumenstingl@googlemail.com>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 * You should have received a copy of the GNU General Public License
11 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 #include <media/rc-map.h>
15 #include <linux/module.h>
17 static struct rc_map_table geekbox
[] = {
22 { 0x0b, KEY_VOLUMEUP
},
28 { 0x58, KEY_VOLUMEDOWN
},
32 static struct rc_map_list geekbox_map
= {
35 .size
= ARRAY_SIZE(geekbox
),
36 .rc_type
= RC_TYPE_NEC
,
37 .name
= RC_MAP_GEEKBOX
,
41 static int __init
init_rc_map_geekbox(void)
43 return rc_map_register(&geekbox_map
);
46 static void __exit
exit_rc_map_geekbox(void)
48 rc_map_unregister(&geekbox_map
);
51 module_init(init_rc_map_geekbox
)
52 module_exit(exit_rc_map_geekbox
)
54 MODULE_LICENSE("GPL");
55 MODULE_AUTHOR("Martin Blumenstingl <martin.blumenstingl@googlemail.com>");