aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/rc-main.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-11-17 11:28:38 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-12-29 05:16:50 -0500
commit6bda96447cef24fbf97a798b1ea664224d5fdc25 (patch)
tree4ab424732b58dfc3b2d0f1b64bd625d67f857cfa /drivers/media/rc/rc-main.c
parenta6e3b81f6198654207c4e972e7ed91931e53e93c (diff)
[media] rc: rename the remaining things to rc_core
The Remote Controller subsystem is meant to be used not only by Infra Red but also for similar types of Remote Controllers. The core is not specific to Infra Red. As such, rename: - ir-core.h to rc-core.h - IR_CORE to RC_CORE - namespace inside rc-core.c/rc-core.h To be consistent with the other changes. No functional change on this patch. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/rc/rc-main.c')
-rw-r--r--drivers/media/rc/rc-main.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c
index 5b67eea96ebb..d91b62cf1324 100644
--- a/drivers/media/rc/rc-main.c
+++ b/drivers/media/rc/rc-main.c
@@ -12,7 +12,7 @@
12 * GNU General Public License for more details. 12 * GNU General Public License for more details.
13 */ 13 */
14 14
15#include <media/ir-core.h> 15#include <media/rc-core.h>
16#include <linux/spinlock.h> 16#include <linux/spinlock.h>
17#include <linux/delay.h> 17#include <linux/delay.h>
18#include <linux/input.h> 18#include <linux/input.h>
@@ -1103,11 +1103,11 @@ EXPORT_SYMBOL_GPL(rc_unregister_device);
1103 * Init/exit code for the module. Basically, creates/removes /sys/class/rc 1103 * Init/exit code for the module. Basically, creates/removes /sys/class/rc
1104 */ 1104 */
1105 1105
1106static int __init ir_core_init(void) 1106static int __init rc_core_init(void)
1107{ 1107{
1108 int rc = class_register(&ir_input_class); 1108 int rc = class_register(&ir_input_class);
1109 if (rc) { 1109 if (rc) {
1110 printk(KERN_ERR "ir_core: unable to register rc class\n"); 1110 printk(KERN_ERR "rc_core: unable to register rc class\n");
1111 return rc; 1111 return rc;
1112 } 1112 }
1113 1113
@@ -1118,18 +1118,18 @@ static int __init ir_core_init(void)
1118 return 0; 1118 return 0;
1119} 1119}
1120 1120
1121static void __exit ir_core_exit(void) 1121static void __exit rc_core_exit(void)
1122{ 1122{
1123 class_unregister(&ir_input_class); 1123 class_unregister(&ir_input_class);
1124 ir_unregister_map(&empty_map); 1124 ir_unregister_map(&empty_map);
1125} 1125}
1126 1126
1127module_init(ir_core_init); 1127module_init(rc_core_init);
1128module_exit(ir_core_exit); 1128module_exit(rc_core_exit);
1129 1129
1130int ir_core_debug; /* ir_debug level (0,1,2) */ 1130int rc_core_debug; /* ir_debug level (0,1,2) */
1131EXPORT_SYMBOL_GPL(ir_core_debug); 1131EXPORT_SYMBOL_GPL(rc_core_debug);
1132module_param_named(debug, ir_core_debug, int, 0644); 1132module_param_named(debug, rc_core_debug, int, 0644);
1133 1133
1134MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>"); 1134MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@redhat.com>");
1135MODULE_LICENSE("GPL"); 1135MODULE_LICENSE("GPL");