Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / drivers / media / rc / keymaps / rc-evga-indtube.c
blobf4398444330b918b67e921b95f03642ff63ba99d
1 // SPDX-License-Identifier: GPL-2.0+
2 // evga-indtube.h - Keytable for evga_indtube Remote Controller
3 //
4 // keymap imported from ir-keymaps.c
5 //
6 // Copyright (c) 2010 by Mauro Carvalho Chehab
8 #include <media/rc-map.h>
9 #include <linux/module.h>
11 /* EVGA inDtube
12 Devin Heitmueller <devin.heitmueller@gmail.com>
15 static struct rc_map_table evga_indtube[] = {
16 { 0x12, KEY_POWER},
17 { 0x02, KEY_MODE}, /* TV */
18 { 0x14, KEY_MUTE},
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},
25 { 0x1c, KEY_REWIND},
26 { 0x0d, KEY_RECORD},
27 { 0x18, KEY_FORWARD},
28 { 0x1e, KEY_PREVIOUS},
29 { 0x1b, KEY_STOP},
30 { 0x1f, KEY_NEXT},
31 { 0x13, KEY_CAMERA},
34 static struct rc_map_list evga_indtube_map = {
35 .map = {
36 .scan = evga_indtube,
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");