blob: e8e23e233c392373ca92e35176504a03173f779f [file] [log] [blame]
Jarod Wilson15f135d2010-07-03 01:08:52 -03001/* 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
Mauro Carvalho Chehab6bda9642010-11-17 13:28:38 -030012#include <media/rc-core.h>
Jarod Wilson15f135d2010-07-03 01:08:52 -030013
Mauro Carvalho Chehab2f4f58d2010-11-17 15:46:09 -030014static struct rc_map_table lirc[] = {
Jarod Wilson15f135d2010-07-03 01:08:52 -030015 { },
16};
17
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030018static struct rc_map_list lirc_map = {
Jarod Wilson15f135d2010-07-03 01:08:52 -030019 .map = {
20 .scan = lirc,
21 .size = ARRAY_SIZE(lirc),
Mauro Carvalho Chehab52b66142010-11-17 14:20:52 -030022 .rc_type = RC_TYPE_LIRC,
Jarod Wilson15f135d2010-07-03 01:08:52 -030023 .name = RC_MAP_LIRC,
24 }
25};
26
27static int __init init_rc_map_lirc(void)
28{
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030029 return rc_map_register(&lirc_map);
Jarod Wilson15f135d2010-07-03 01:08:52 -030030}
31
32static void __exit exit_rc_map_lirc(void)
33{
Mauro Carvalho Chehabd100e652010-11-17 15:56:53 -030034 rc_map_unregister(&lirc_map);
Jarod Wilson15f135d2010-07-03 01:08:52 -030035}
36
37module_init(init_rc_map_lirc)
38module_exit(exit_rc_map_lirc)
39
40MODULE_LICENSE("GPL");
41MODULE_AUTHOR("Jarod Wilson <jarod@redhat.com>");