1 // SPDX-License-Identifier: GPL-2.0+
2 // pinnacle-color.h - Keytable for pinnacle_color 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>
11 static struct rc_map_table pinnacle_color
[] = {
24 { 0x2d, KEY_VOLUMEUP
},
25 { 0x1e, KEY_VOLUMEDOWN
},
29 { 0x16, KEY_CHANNELUP
},
30 { 0x17, KEY_CHANNELDOWN
},
39 { 0x07, KEY_REFRESH
},
47 { 0x4e, KEY_FORWARD
},
48 { 0x53, KEY_PREVIOUS
},
63 { 0x74, KEY_CHANNEL
},
64 { 0x0a, KEY_BACKSPACE
},
67 static struct rc_map_list pinnacle_color_map
= {
69 .scan
= pinnacle_color
,
70 .size
= ARRAY_SIZE(pinnacle_color
),
71 .rc_proto
= RC_PROTO_UNKNOWN
, /* Legacy IR type */
72 .name
= RC_MAP_PINNACLE_COLOR
,
76 static int __init
init_rc_map_pinnacle_color(void)
78 return rc_map_register(&pinnacle_color_map
);
81 static void __exit
exit_rc_map_pinnacle_color(void)
83 rc_map_unregister(&pinnacle_color_map
);
86 module_init(init_rc_map_pinnacle_color
)
87 module_exit(exit_rc_map_pinnacle_color
)
89 MODULE_LICENSE("GPL");
90 MODULE_AUTHOR("Mauro Carvalho Chehab");