aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/input.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2005-10-28 01:25:43 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-10-28 12:52:55 -0400
commitea9f240bd819f9299703283e5326da606bbb4b05 (patch)
tree68b83a2a093a332c8fda8dfc695c73ebe084b014 /drivers/input/input.c
parentb0fdfebb205fcbf394c3db39679a766b8fc4f07d (diff)
[PATCH] INPUT: rename input_dev_class to input_class to be correct.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/input/input.c')
-rw-r--r--drivers/input/input.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c
index 5c9044dbf00e..a8f65fa7e17a 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -39,7 +39,7 @@ EXPORT_SYMBOL(input_close_device);
39EXPORT_SYMBOL(input_accept_process); 39EXPORT_SYMBOL(input_accept_process);
40EXPORT_SYMBOL(input_flush_device); 40EXPORT_SYMBOL(input_flush_device);
41EXPORT_SYMBOL(input_event); 41EXPORT_SYMBOL(input_event);
42EXPORT_SYMBOL_GPL(input_dev_class); 42EXPORT_SYMBOL_GPL(input_class);
43 43
44#define INPUT_DEVICES 256 44#define INPUT_DEVICES 256
45 45
@@ -729,8 +729,8 @@ static void input_dev_release(struct class_device *class_dev)
729 module_put(THIS_MODULE); 729 module_put(THIS_MODULE);
730} 730}
731 731
732struct class input_dev_class = { 732struct class input_class = {
733 .name = "input_dev", 733 .name = "input",
734 .release = input_dev_release, 734 .release = input_dev_release,
735}; 735};
736 736
@@ -741,7 +741,7 @@ struct input_dev *input_allocate_device(void)
741 dev = kzalloc(sizeof(struct input_dev), GFP_KERNEL); 741 dev = kzalloc(sizeof(struct input_dev), GFP_KERNEL);
742 if (dev) { 742 if (dev) {
743 dev->dynalloc = 1; 743 dev->dynalloc = 1;
744 dev->cdev.class = &input_dev_class; 744 dev->cdev.class = &input_class;
745 class_device_initialize(&dev->cdev); 745 class_device_initialize(&dev->cdev);
746 INIT_LIST_HEAD(&dev->h_list); 746 INIT_LIST_HEAD(&dev->h_list);
747 INIT_LIST_HEAD(&dev->node); 747 INIT_LIST_HEAD(&dev->node);
@@ -930,7 +930,7 @@ static int __init input_init(void)
930{ 930{
931 int err; 931 int err;
932 932
933 err = class_register(&input_dev_class); 933 err = class_register(&input_class);
934 if (err) { 934 if (err) {
935 printk(KERN_ERR "input: unable to register input_dev class\n"); 935 printk(KERN_ERR "input: unable to register input_dev class\n");
936 return err; 936 return err;
@@ -949,7 +949,7 @@ static int __init input_init(void)
949 return 0; 949 return 0;
950 950
951 fail2: input_proc_exit(); 951 fail2: input_proc_exit();
952 fail1: class_unregister(&input_dev_class); 952 fail1: class_unregister(&input_class);
953 return err; 953 return err;
954} 954}
955 955
@@ -957,7 +957,7 @@ static void __exit input_exit(void)
957{ 957{
958 input_proc_exit(); 958 input_proc_exit();
959 unregister_chrdev(INPUT_MAJOR, "input"); 959 unregister_chrdev(INPUT_MAJOR, "input");
960 class_unregister(&input_dev_class); 960 class_unregister(&input_class);
961} 961}
962 962
963subsys_initcall(input_init); 963subsys_initcall(input_init);