[PATCH] INPUT: export input_dev_class so that input drivers can use it.
authorGreg Kroah-Hartman <gregkh@suse.de>
Fri, 28 Oct 2005 05:25:43 +0000 (22:25 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 28 Oct 2005 16:52:54 +0000 (09:52 -0700)
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/input/input.c
include/linux/input.h

index 03c2ca404f20e06b150d915d1be6ef75d42ec0b4..b0ede4cc72b7d463e8ab4a3befc996a81a0de2ef 100644 (file)
@@ -40,6 +40,7 @@ EXPORT_SYMBOL(input_accept_process);
 EXPORT_SYMBOL(input_flush_device);
 EXPORT_SYMBOL(input_event);
 EXPORT_SYMBOL(input_class);
+EXPORT_SYMBOL_GPL(input_dev_class);
 
 #define INPUT_DEVICES  256
 
@@ -724,7 +725,7 @@ static void input_dev_release(struct class_device *class_dev)
        module_put(THIS_MODULE);
 }
 
-static struct class input_dev_class = {
+struct class input_dev_class = {
        .name                   = "input_dev",
        .release                = input_dev_release,
        .class_dev_attrs        = input_dev_attrs,
index 3defa29a17d3ca7fe7a9a1cd79b03409249fb29e..5de844157fa93b6e9dda0d3d473e94a345657373 100644 (file)
@@ -1075,6 +1075,7 @@ static inline void input_set_abs_params(struct input_dev *dev, int axis, int min
 }
 
 extern struct class *input_class;
+extern struct class input_dev_class;
 
 #endif
 #endif