diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2005-10-28 01:25:43 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-10-28 12:52:54 -0400 |
commit | 967ca692161d8c4e894932599592af8d62c0a895 (patch) | |
tree | d1cb14bddd9484c0f9e58e9dd52881f172e235b9 | |
parent | 23d50901617c2a8bdef509279a42d2e90f523db9 (diff) |
[PATCH] INPUT: move the input class devices under their new input_dev devices
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/input/evdev.c | 6 | ||||
-rw-r--r-- | drivers/input/joydev.c | 6 | ||||
-rw-r--r-- | drivers/input/mousedev.c | 10 | ||||
-rw-r--r-- | drivers/input/tsdev.c | 6 |
4 files changed, 14 insertions, 14 deletions
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index 14ea57f963bb..579041ded4be 100644 --- a/drivers/input/evdev.c +++ b/drivers/input/evdev.c | |||
@@ -686,9 +686,9 @@ 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_class, NULL, | 689 | class_device_create(&input_dev_class, &dev->cdev, |
690 | MKDEV(INPUT_MAJOR, EVDEV_MINOR_BASE + minor), | 690 | MKDEV(INPUT_MAJOR, EVDEV_MINOR_BASE + minor), |
691 | dev->dev, "event%d", minor); | 691 | dev->cdev.dev, "event%d", minor); |
692 | 692 | ||
693 | return &evdev->handle; | 693 | return &evdev->handle; |
694 | } | 694 | } |
@@ -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_class, | 701 | class_device_destroy(&input_dev_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/joydev.c b/drivers/input/joydev.c index 40d2b46cbc79..9c17d1add260 100644 --- a/drivers/input/joydev.c +++ b/drivers/input/joydev.c | |||
@@ -513,9 +513,9 @@ 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_class, NULL, | 516 | class_device_create(&input_dev_class, &dev->cdev, |
517 | MKDEV(INPUT_MAJOR, JOYDEV_MINOR_BASE + minor), | 517 | MKDEV(INPUT_MAJOR, JOYDEV_MINOR_BASE + minor), |
518 | dev->dev, "js%d", minor); | 518 | dev->cdev.dev, "js%d", minor); |
519 | 519 | ||
520 | return &joydev->handle; | 520 | return &joydev->handle; |
521 | } | 521 | } |
@@ -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_class, MKDEV(INPUT_MAJOR, JOYDEV_MINOR_BASE + joydev->minor)); | 528 | class_device_destroy(&input_dev_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 89c3e496f1ed..5ec6291e967f 100644 --- a/drivers/input/mousedev.c +++ b/drivers/input/mousedev.c | |||
@@ -648,9 +648,9 @@ 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_class, NULL, | 651 | class_device_create(&input_dev_class, &dev->cdev, |
652 | MKDEV(INPUT_MAJOR, MOUSEDEV_MINOR_BASE + minor), | 652 | MKDEV(INPUT_MAJOR, MOUSEDEV_MINOR_BASE + minor), |
653 | dev->dev, "mouse%d", minor); | 653 | dev->cdev.dev, "mouse%d", minor); |
654 | 654 | ||
655 | return &mousedev->handle; | 655 | return &mousedev->handle; |
656 | } | 656 | } |
@@ -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_class, | 663 | class_device_destroy(&input_dev_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_class, NULL, | 737 | class_device_create(&input_dev_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_class, | 756 | class_device_destroy(&input_dev_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 2d45e4df4163..0581edb9a560 100644 --- a/drivers/input/tsdev.c +++ b/drivers/input/tsdev.c | |||
@@ -409,9 +409,9 @@ 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_class, NULL, | 412 | class_device_create(&input_dev_class, &dev->cdev, |
413 | MKDEV(INPUT_MAJOR, TSDEV_MINOR_BASE + minor), | 413 | MKDEV(INPUT_MAJOR, TSDEV_MINOR_BASE + minor), |
414 | dev->dev, "ts%d", minor); | 414 | dev->cdev.dev, "ts%d", minor); |
415 | 415 | ||
416 | return &tsdev->handle; | 416 | return &tsdev->handle; |
417 | } | 417 | } |
@@ -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_class, | 424 | class_device_destroy(&input_dev_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 | ||