rc-lirc.c 998 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. #include <media/rc-core.h>
  12. #include <linux/module.h>
  13. static struct rc_map_table lirc[] = {
  14. { },
  15. };
  16. static struct rc_map_list lirc_map = {
  17. .map = {
  18. .scan = lirc,
  19. .size = ARRAY_SIZE(lirc),
  20. .rc_type = RC_TYPE_OTHER,
  21. .name = RC_MAP_LIRC,
  22. }
  23. };
  24. static int __init init_rc_map_lirc(void)
  25. {
  26. return rc_map_register(&lirc_map);
  27. }
  28. static void __exit exit_rc_map_lirc(void)
  29. {
  30. rc_map_unregister(&lirc_map);
  31. }
  32. module_init(init_rc_map_lirc)
  33. module_exit(exit_rc_map_lirc)
  34. MODULE_LICENSE("GPL");
  35. MODULE_AUTHOR("Jarod Wilson <jarod@redhat.com>");