aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
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
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')
-rw-r--r--drivers/input/evdev.c4
-rw-r--r--drivers/input/input.c14
-rw-r--r--drivers/input/joydev.c4
-rw-r--r--drivers/input/mousedev.c8
-rw-r--r--drivers/input/tsdev.c4
5 files changed, 17 insertions, 17 deletions
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c
index 579041ded4be..2a96b260a2a8 100644
--- a/drivers/input/evdev.c
+++ b/drivers/input/evdev.c
@@ -686,7 +686,7 @@ static struct input_handle *evdev_connect(struct input_handler *handler, struct
686 686
687 evdev_table[minor] = evdev; 687 evdev_table[minor] = evdev;
688 688
689 class_device_create(&input_dev_class, &dev->cdev, 689 class_device_create(&input_class, &dev->cdev,
690 MKDEV(INPUT_MAJOR, EVDEV_MINOR_BASE + minor), 690 MKDEV(INPUT_MAJOR, EVDEV_MINOR_BASE + minor),
691 dev->cdev.dev, "event%d", minor); 691 dev->cdev.dev, "event%d", minor);
692 692
@@ -698,7 +698,7 @@ static void evdev_disconnect(struct input_handle *handle)
698 struct evdev *evdev = handle->private; 698 struct evdev *evdev = handle->private;
699 struct evdev_list *list; 699 struct evdev_list *list;
700 700
701 class_device_destroy(&input_dev_class, 701 class_device_destroy(&input_class,
702 MKDEV(INPUT_MAJOR, EVDEV_MINOR_BASE + evdev->minor)); 702 MKDEV(INPUT_MAJOR, EVDEV_MINOR_BASE + evdev->minor));
703 evdev->exist = 0; 703 evdev->exist = 0;
704 704
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);
diff --git a/drivers/input/joydev.c b/drivers/input/joydev.c
index 9c17d1add260..25f7eba4761f 100644
--- a/drivers/input/joydev.c
+++ b/drivers/input/joydev.c
@@ -513,7 +513,7 @@ static struct input_handle *joydev_connect(struct input_handler *handler, struct
513 513
514 joydev_table[minor] = joydev; 514 joydev_table[minor] = joydev;
515 515
516 class_device_create(&input_dev_class, &dev->cdev, 516 class_device_create(&input_class, &dev->cdev,
517 MKDEV(INPUT_MAJOR, JOYDEV_MINOR_BASE + minor), 517 MKDEV(INPUT_MAJOR, JOYDEV_MINOR_BASE + minor),
518 dev->cdev.dev, "js%d", minor); 518 dev->cdev.dev, "js%d", minor);
519 519
@@ -525,7 +525,7 @@ static void joydev_disconnect(struct input_handle *handle)
525 struct joydev *joydev = handle->private; 525 struct joydev *joydev = handle->private;
526 struct joydev_list *list; 526 struct joydev_list *list;
527 527
528 class_device_destroy(&input_dev_class, MKDEV(INPUT_MAJOR, JOYDEV_MINOR_BASE + joydev->minor)); 528 class_device_destroy(&input_class, MKDEV(INPUT_MAJOR, JOYDEV_MINOR_BASE + joydev->minor));
529 joydev->exist = 0; 529 joydev->exist = 0;
530 530
531 if (joydev->open) { 531 if (joydev->open) {
diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c
index 5ec6291e967f..de2808fc85b3 100644
--- a/drivers/input/mousedev.c
+++ b/drivers/input/mousedev.c
@@ -648,7 +648,7 @@ static struct input_handle *mousedev_connect(struct input_handler *handler, stru
648 648
649 mousedev_table[minor] = mousedev; 649 mousedev_table[minor] = mousedev;
650 650
651 class_device_create(&input_dev_class, &dev->cdev, 651 class_device_create(&input_class, &dev->cdev,
652 MKDEV(INPUT_MAJOR, MOUSEDEV_MINOR_BASE + minor), 652 MKDEV(INPUT_MAJOR, MOUSEDEV_MINOR_BASE + minor),
653 dev->cdev.dev, "mouse%d", minor); 653 dev->cdev.dev, "mouse%d", minor);
654 654
@@ -660,7 +660,7 @@ static void mousedev_disconnect(struct input_handle *handle)
660 struct mousedev *mousedev = handle->private; 660 struct mousedev *mousedev = handle->private;
661 struct mousedev_list *list; 661 struct mousedev_list *list;
662 662
663 class_device_destroy(&input_dev_class, 663 class_device_destroy(&input_class,
664 MKDEV(INPUT_MAJOR, MOUSEDEV_MINOR_BASE + mousedev->minor)); 664 MKDEV(INPUT_MAJOR, MOUSEDEV_MINOR_BASE + mousedev->minor));
665 mousedev->exist = 0; 665 mousedev->exist = 0;
666 666
@@ -734,7 +734,7 @@ static int __init mousedev_init(void)
734 mousedev_mix.exist = 1; 734 mousedev_mix.exist = 1;
735 mousedev_mix.minor = MOUSEDEV_MIX; 735 mousedev_mix.minor = MOUSEDEV_MIX;
736 736
737 class_device_create(&input_dev_class, NULL, 737 class_device_create(&input_class, NULL,
738 MKDEV(INPUT_MAJOR, MOUSEDEV_MINOR_BASE + MOUSEDEV_MIX), NULL, "mice"); 738 MKDEV(INPUT_MAJOR, MOUSEDEV_MINOR_BASE + MOUSEDEV_MIX), NULL, "mice");
739 739
740#ifdef CONFIG_INPUT_MOUSEDEV_PSAUX 740#ifdef CONFIG_INPUT_MOUSEDEV_PSAUX
@@ -753,7 +753,7 @@ static void __exit mousedev_exit(void)
753 if (psaux_registered) 753 if (psaux_registered)
754 misc_deregister(&psaux_mouse); 754 misc_deregister(&psaux_mouse);
755#endif 755#endif
756 class_device_destroy(&input_dev_class, 756 class_device_destroy(&input_class,
757 MKDEV(INPUT_MAJOR, MOUSEDEV_MINOR_BASE + MOUSEDEV_MIX)); 757 MKDEV(INPUT_MAJOR, MOUSEDEV_MINOR_BASE + MOUSEDEV_MIX));
758 input_unregister_handler(&mousedev_handler); 758 input_unregister_handler(&mousedev_handler);
759} 759}
diff --git a/drivers/input/tsdev.c b/drivers/input/tsdev.c
index 0581edb9a560..75e165736655 100644
--- a/drivers/input/tsdev.c
+++ b/drivers/input/tsdev.c
@@ -409,7 +409,7 @@ static struct input_handle *tsdev_connect(struct input_handler *handler,
409 409
410 tsdev_table[minor] = tsdev; 410 tsdev_table[minor] = tsdev;
411 411
412 class_device_create(&input_dev_class, &dev->cdev, 412 class_device_create(&input_class, &dev->cdev,
413 MKDEV(INPUT_MAJOR, TSDEV_MINOR_BASE + minor), 413 MKDEV(INPUT_MAJOR, TSDEV_MINOR_BASE + minor),
414 dev->cdev.dev, "ts%d", minor); 414 dev->cdev.dev, "ts%d", minor);
415 415
@@ -421,7 +421,7 @@ static void tsdev_disconnect(struct input_handle *handle)
421 struct tsdev *tsdev = handle->private; 421 struct tsdev *tsdev = handle->private;
422 struct tsdev_list *list; 422 struct tsdev_list *list;
423 423
424 class_device_destroy(&input_dev_class, 424 class_device_destroy(&input_class,
425 MKDEV(INPUT_MAJOR, TSDEV_MINOR_BASE + tsdev->minor)); 425 MKDEV(INPUT_MAJOR, TSDEV_MINOR_BASE + tsdev->minor));
426 tsdev->exist = 0; 426 tsdev->exist = 0;
427 427