Merge branch 'linux_next' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab...
[pandora-kernel.git] / drivers / media / IR / keymaps / rc-empty.c
1 /* empty.h - Keytable for empty Remote Controller
2  *
3  * keymap imported from ir-keymaps.c
4  *
5  * Copyright (c) 2010 by Mauro Carvalho Chehab <mchehab@redhat.com>
6  *
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.
11  */
12
13 #include <media/rc-map.h>
14
15 /* empty keytable, can be used as placeholder for not-yet created keytables */
16
17 static struct ir_scancode empty[] = {
18         { 0x2a, KEY_COFFEE },
19 };
20
21 static struct rc_keymap empty_map = {
22         .map = {
23                 .scan    = empty,
24                 .size    = ARRAY_SIZE(empty),
25                 .ir_type = IR_TYPE_UNKNOWN,     /* Legacy IR type */
26                 .name    = RC_MAP_EMPTY,
27         }
28 };
29
30 static int __init init_rc_map_empty(void)
31 {
32         return ir_register_map(&empty_map);
33 }
34
35 static void __exit exit_rc_map_empty(void)
36 {
37         ir_unregister_map(&empty_map);
38 }
39
40 module_init(init_rc_map_empty)
41 module_exit(exit_rc_map_empty)
42
43 MODULE_LICENSE("GPL");
44 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");