rc-empty.c 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. #include <media/rc-map.h>
  13. /* empty keytable, can be used as placeholder for not-yet created keytables */
  14. static struct ir_scancode empty[] = {
  15. { 0x2a, KEY_COFFEE },
  16. };
  17. static struct rc_keymap empty_map = {
  18. .map = {
  19. .scan = empty,
  20. .size = ARRAY_SIZE(empty),
  21. .ir_type = IR_TYPE_UNKNOWN, /* Legacy IR type */
  22. .name = RC_MAP_EMPTY,
  23. }
  24. };
  25. static int __init init_rc_map_empty(void)
  26. {
  27. return ir_register_map(&empty_map);
  28. }
  29. static void __exit exit_rc_map_empty(void)
  30. {
  31. ir_unregister_map(&empty_map);
  32. }
  33. module_init(init_rc_map_empty)
  34. module_exit(exit_rc_map_empty)
  35. MODULE_LICENSE("GPL");
  36. MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");