Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] INPUT: rename input_dev_class to input_class to be correct.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

+18 -18
+2 -2
drivers/input/evdev.c
··· 686 686 687 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 690 MKDEV(INPUT_MAJOR, EVDEV_MINOR_BASE + minor), 691 691 dev->cdev.dev, "event%d", minor); 692 692 ··· 698 698 struct evdev *evdev = handle->private; 699 699 struct evdev_list *list; 700 700 701 - class_device_destroy(&input_dev_class, 701 + class_device_destroy(&input_class, 702 702 MKDEV(INPUT_MAJOR, EVDEV_MINOR_BASE + evdev->minor)); 703 703 evdev->exist = 0; 704 704
+7 -7
drivers/input/input.c
··· 39 39 EXPORT_SYMBOL(input_accept_process); 40 40 EXPORT_SYMBOL(input_flush_device); 41 41 EXPORT_SYMBOL(input_event); 42 - EXPORT_SYMBOL_GPL(input_dev_class); 42 + EXPORT_SYMBOL_GPL(input_class); 43 43 44 44 #define INPUT_DEVICES 256 45 45 ··· 729 729 module_put(THIS_MODULE); 730 730 } 731 731 732 - struct class input_dev_class = { 733 - .name = "input_dev", 732 + struct class input_class = { 733 + .name = "input", 734 734 .release = input_dev_release, 735 735 }; 736 736 ··· 741 741 dev = kzalloc(sizeof(struct input_dev), GFP_KERNEL); 742 742 if (dev) { 743 743 dev->dynalloc = 1; 744 - dev->cdev.class = &input_dev_class; 744 + dev->cdev.class = &input_class; 745 745 class_device_initialize(&dev->cdev); 746 746 INIT_LIST_HEAD(&dev->h_list); 747 747 INIT_LIST_HEAD(&dev->node); ··· 930 930 { 931 931 int err; 932 932 933 - err = class_register(&input_dev_class); 933 + err = class_register(&input_class); 934 934 if (err) { 935 935 printk(KERN_ERR "input: unable to register input_dev class\n"); 936 936 return err; ··· 949 949 return 0; 950 950 951 951 fail2: input_proc_exit(); 952 - fail1: class_unregister(&input_dev_class); 952 + fail1: class_unregister(&input_class); 953 953 return err; 954 954 } 955 955 ··· 957 957 { 958 958 input_proc_exit(); 959 959 unregister_chrdev(INPUT_MAJOR, "input"); 960 - class_unregister(&input_dev_class); 960 + class_unregister(&input_class); 961 961 } 962 962 963 963 subsys_initcall(input_init);
+2 -2
drivers/input/joydev.c
··· 513 513 514 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 517 MKDEV(INPUT_MAJOR, JOYDEV_MINOR_BASE + minor), 518 518 dev->cdev.dev, "js%d", minor); 519 519 ··· 525 525 struct joydev *joydev = handle->private; 526 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 529 joydev->exist = 0; 530 530 531 531 if (joydev->open) {
+4 -4
drivers/input/mousedev.c
··· 648 648 649 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 652 MKDEV(INPUT_MAJOR, MOUSEDEV_MINOR_BASE + minor), 653 653 dev->cdev.dev, "mouse%d", minor); 654 654 ··· 660 660 struct mousedev *mousedev = handle->private; 661 661 struct mousedev_list *list; 662 662 663 - class_device_destroy(&input_dev_class, 663 + class_device_destroy(&input_class, 664 664 MKDEV(INPUT_MAJOR, MOUSEDEV_MINOR_BASE + mousedev->minor)); 665 665 mousedev->exist = 0; 666 666 ··· 734 734 mousedev_mix.exist = 1; 735 735 mousedev_mix.minor = MOUSEDEV_MIX; 736 736 737 - class_device_create(&input_dev_class, NULL, 737 + class_device_create(&input_class, NULL, 738 738 MKDEV(INPUT_MAJOR, MOUSEDEV_MINOR_BASE + MOUSEDEV_MIX), NULL, "mice"); 739 739 740 740 #ifdef CONFIG_INPUT_MOUSEDEV_PSAUX ··· 753 753 if (psaux_registered) 754 754 misc_deregister(&psaux_mouse); 755 755 #endif 756 - class_device_destroy(&input_dev_class, 756 + class_device_destroy(&input_class, 757 757 MKDEV(INPUT_MAJOR, MOUSEDEV_MINOR_BASE + MOUSEDEV_MIX)); 758 758 input_unregister_handler(&mousedev_handler); 759 759 }
+2 -2
drivers/input/tsdev.c
··· 409 409 410 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 413 MKDEV(INPUT_MAJOR, TSDEV_MINOR_BASE + minor), 414 414 dev->cdev.dev, "ts%d", minor); 415 415 ··· 421 421 struct tsdev *tsdev = handle->private; 422 422 struct tsdev_list *list; 423 423 424 - class_device_destroy(&input_dev_class, 424 + class_device_destroy(&input_class, 425 425 MKDEV(INPUT_MAJOR, TSDEV_MINOR_BASE + tsdev->minor)); 426 426 tsdev->exist = 0; 427 427
+1 -1
include/linux/input.h
··· 1074 1074 dev->absbit[LONG(axis)] |= BIT(axis); 1075 1075 } 1076 1076 1077 - extern struct class input_dev_class; 1077 + extern struct class input_class; 1078 1078 1079 1079 #endif 1080 1080 #endif