1 // SPDX-License-Identifier: GPL-2.0+
5 #include <media/rc-map.h>
6 #include <linux/module.h>
9 // Keytable for the HardKernel ODROID remote control
12 static struct rc_map_table odroid[] = {
13 { 0xb2dc, KEY_POWER },
21 { 0xb2c1, KEY_RIGHT },
27 { 0xb281, KEY_VOLUMEDOWN },
28 { 0xb280, KEY_VOLUMEUP },
31 static struct rc_map_list odroid_map = {
34 .size = ARRAY_SIZE(odroid),
35 .rc_proto = RC_PROTO_NEC,
36 .name = RC_MAP_ODROID,
40 static int __init init_rc_map_odroid(void)
42 return rc_map_register(&odroid_map);
45 static void __exit exit_rc_map_odroid(void)
47 rc_map_unregister(&odroid_map);
50 module_init(init_rc_map_odroid)
51 module_exit(exit_rc_map_odroid)
53 MODULE_LICENSE("GPL");
55 MODULE_DESCRIPTION("HardKernel ODROID remote controller keytable");