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
},
52 { 0x69, KEY_NUMERIC_0
},
53 { 0x6a, KEY_NUMERIC_1
},
54 { 0x6b, KEY_NUMERIC_2
},
55 { 0x6c, KEY_NUMERIC_3
},
56 { 0x6d, KEY_NUMERIC_4
},
57 { 0x6e, KEY_NUMERIC_5
},
58 { 0x6f, KEY_NUMERIC_6
},
59 { 0x70, KEY_NUMERIC_7
},
60 { 0x71, KEY_NUMERIC_8
},
61 { 0x72, KEY_NUMERIC_9
},
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");