1 // SPDX-License-Identifier: GPL-2.0+
2 // evga-indtube.h - Keytable for evga_indtube Remote Controller
4 // keymap imported from ir-keymaps.c
6 // Copyright (c) 2010 by Mauro Carvalho Chehab
8 #include <media/rc-map.h>
9 #include <linux/module.h>
12 Devin Heitmueller <devin.heitmueller@gmail.com>
15 static struct rc_map_table evga_indtube
[] = {
17 { 0x02, KEY_MODE
}, /* TV */
19 { 0x1a, KEY_CHANNELUP
},
20 { 0x16, KEY_TV2
}, /* PIP */
21 { 0x1d, KEY_VOLUMEUP
},
22 { 0x05, KEY_CHANNELDOWN
},
23 { 0x0f, KEY_PLAYPAUSE
},
24 { 0x19, KEY_VOLUMEDOWN
},
28 { 0x1e, KEY_PREVIOUS
},
34 static struct rc_map_list evga_indtube_map
= {
37 .size
= ARRAY_SIZE(evga_indtube
),
38 .rc_proto
= RC_PROTO_UNKNOWN
, /* Legacy IR type */
39 .name
= RC_MAP_EVGA_INDTUBE
,
43 static int __init
init_rc_map_evga_indtube(void)
45 return rc_map_register(&evga_indtube_map
);
48 static void __exit
exit_rc_map_evga_indtube(void)
50 rc_map_unregister(&evga_indtube_map
);
53 module_init(init_rc_map_evga_indtube
)
54 module_exit(exit_rc_map_evga_indtube
)
56 MODULE_LICENSE("GPL");
57 MODULE_AUTHOR("Mauro Carvalho Chehab");