]> git.karo-electronics.de Git - mv-sheeva.git/blob - drivers/media/IR/keymaps/rc-lirc.c
Merge branch 'x86-mrst-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[mv-sheeva.git] / drivers / media / IR / keymaps / rc-lirc.c
1 /* rc-lirc.c - Empty dummy keytable, for use when its preferred to pass
2  * all raw IR data to the lirc userspace decoder.
3  *
4  * Copyright (c) 2010 by Jarod Wilson <jarod@redhat.com>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  */
11
12 #include <media/ir-core.h>
13
14 static struct ir_scancode lirc[] = {
15         { },
16 };
17
18 static struct rc_keymap lirc_map = {
19         .map = {
20                 .scan    = lirc,
21                 .size    = ARRAY_SIZE(lirc),
22                 .ir_type = IR_TYPE_LIRC,
23                 .name    = RC_MAP_LIRC,
24         }
25 };
26
27 static int __init init_rc_map_lirc(void)
28 {
29         return ir_register_map(&lirc_map);
30 }
31
32 static void __exit exit_rc_map_lirc(void)
33 {
34         ir_unregister_map(&lirc_map);
35 }
36
37 module_init(init_rc_map_lirc)
38 module_exit(exit_rc_map_lirc)
39
40 MODULE_LICENSE("GPL");
41 MODULE_AUTHOR("Jarod Wilson <jarod@redhat.com>");