2010-07-03 12:08:52 +08:00
|
|
|
/* rc-lirc.c - Empty dummy keytable, for use when its preferred to pass
|
|
|
|
* all raw IR data to the lirc userspace decoder.
|
|
|
|
*
|
|
|
|
* Copyright (c) 2010 by Jarod Wilson <jarod@redhat.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*/
|
|
|
|
|
2010-11-18 00:28:38 +08:00
|
|
|
#include <media/rc-core.h>
|
2011-07-04 02:03:12 +08:00
|
|
|
#include <linux/module.h>
|
2010-07-03 12:08:52 +08:00
|
|
|
|
[media] rc: Name RC keymap tables as rc_map_table
Remote keytables had different names all over the place. Part of the fault
is due to a bad naming when rc subsystem was created, but there were lots
of old names that were still here.
Use a common standard for everything.
Patch generated by this script:
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_scancode,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,ir_codes_,rc_map_,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_key_map,rc_map_table,g <$i >a && mv a $i; done
for i in `find drivers/staging -type f -name *.[ch]` `find include/media -type f -name *.[ch]` `find drivers/media -type f -name *.[ch]`; do sed s,rc_map_table_size,rc_map_size,g <$i >a && mv a $i; done
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-11-18 02:46:09 +08:00
|
|
|
static struct rc_map_table lirc[] = {
|
2010-07-03 12:08:52 +08:00
|
|
|
{ },
|
|
|
|
};
|
|
|
|
|
2010-11-18 02:56:53 +08:00
|
|
|
static struct rc_map_list lirc_map = {
|
2010-07-03 12:08:52 +08:00
|
|
|
.map = {
|
|
|
|
.scan = lirc,
|
|
|
|
.size = ARRAY_SIZE(lirc),
|
2010-11-18 01:20:52 +08:00
|
|
|
.rc_type = RC_TYPE_LIRC,
|
2010-07-03 12:08:52 +08:00
|
|
|
.name = RC_MAP_LIRC,
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
static int __init init_rc_map_lirc(void)
|
|
|
|
{
|
2010-11-18 02:56:53 +08:00
|
|
|
return rc_map_register(&lirc_map);
|
2010-07-03 12:08:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
static void __exit exit_rc_map_lirc(void)
|
|
|
|
{
|
2010-11-18 02:56:53 +08:00
|
|
|
rc_map_unregister(&lirc_map);
|
2010-07-03 12:08:52 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
module_init(init_rc_map_lirc)
|
|
|
|
module_exit(exit_rc_map_lirc)
|
|
|
|
|
|
|
|
MODULE_LICENSE("GPL");
|
|
|
|
MODULE_AUTHOR("Jarod Wilson <jarod@redhat.com>");
|