1 /* pinnacle-grey.h - Keytable for pinnacle_grey Remote Controller
3 * keymap imported from ir-keymaps.c
5 * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
13 #include <media/rc-map.h>
15 static struct rc_map_table pinnacle_grey
[] = {
35 { 0x1b, KEY_VOLUMEUP
},
36 { 0x0f, KEY_VOLUMEDOWN
},
37 { 0x17, KEY_CHANNELUP
},
38 { 0x1c, KEY_CHANNELDOWN
},
52 { 0x16, KEY_PREVIOUSSONG
},
53 { 0x13, KEY_NEXTSONG
},
58 { 0x07, KEY_FORWARD
},
66 static struct rc_map_list pinnacle_grey_map
= {
68 .scan
= pinnacle_grey
,
69 .size
= ARRAY_SIZE(pinnacle_grey
),
70 .rc_type
= RC_TYPE_UNKNOWN
, /* Legacy IR type */
71 .name
= RC_MAP_PINNACLE_GREY
,
75 static int __init
init_rc_map_pinnacle_grey(void)
77 return rc_map_register(&pinnacle_grey_map
);
80 static void __exit
exit_rc_map_pinnacle_grey(void)
82 rc_map_unregister(&pinnacle_grey_map
);
85 module_init(init_rc_map_pinnacle_grey
)
86 module_exit(exit_rc_map_pinnacle_grey
)
88 MODULE_LICENSE("GPL");
89 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");