Jarod Wilson | 15f135d | 2010-07-03 01:08:52 -0300 | [diff] [blame] | 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 | |
Mauro Carvalho Chehab | 6bda964 | 2010-11-17 13:28:38 -0300 | [diff] [blame] | 12 | #include <media/rc-core.h> |
Paul Gortmaker | 7a707b8 | 2011-07-03 14:03:12 -0400 | [diff] [blame] | 13 | #include <linux/module.h> |
Jarod Wilson | 15f135d | 2010-07-03 01:08:52 -0300 | [diff] [blame] | 14 | |
Mauro Carvalho Chehab | 2f4f58d | 2010-11-17 15:46:09 -0300 | [diff] [blame] | 15 | static struct rc_map_table lirc[] = { |
Jarod Wilson | 15f135d | 2010-07-03 01:08:52 -0300 | [diff] [blame] | 16 | { }, |
| 17 | }; |
| 18 | |
Mauro Carvalho Chehab | d100e65 | 2010-11-17 15:56:53 -0300 | [diff] [blame] | 19 | static struct rc_map_list lirc_map = { |
Jarod Wilson | 15f135d | 2010-07-03 01:08:52 -0300 | [diff] [blame] | 20 | .map = { |
| 21 | .scan = lirc, |
| 22 | .size = ARRAY_SIZE(lirc), |
Mauro Carvalho Chehab | 52b6614 | 2010-11-17 14:20:52 -0300 | [diff] [blame] | 23 | .rc_type = RC_TYPE_LIRC, |
Jarod Wilson | 15f135d | 2010-07-03 01:08:52 -0300 | [diff] [blame] | 24 | .name = RC_MAP_LIRC, |
| 25 | } |
| 26 | }; |
| 27 | |
| 28 | static int __init init_rc_map_lirc(void) |
| 29 | { |
Mauro Carvalho Chehab | d100e65 | 2010-11-17 15:56:53 -0300 | [diff] [blame] | 30 | return rc_map_register(&lirc_map); |
Jarod Wilson | 15f135d | 2010-07-03 01:08:52 -0300 | [diff] [blame] | 31 | } |
| 32 | |
| 33 | static void __exit exit_rc_map_lirc(void) |
| 34 | { |
Mauro Carvalho Chehab | d100e65 | 2010-11-17 15:56:53 -0300 | [diff] [blame] | 35 | rc_map_unregister(&lirc_map); |
Jarod Wilson | 15f135d | 2010-07-03 01:08:52 -0300 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | module_init(init_rc_map_lirc) |
| 39 | module_exit(exit_rc_map_lirc) |
| 40 | |
| 41 | MODULE_LICENSE("GPL"); |
| 42 | MODULE_AUTHOR("Jarod Wilson <jarod@redhat.com>"); |