Skip to content

Commit

Permalink
[PATCH] INPUT: export input_dev_class so that input drivers can use it.
Browse files Browse the repository at this point in the history
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed Oct 28, 2005
1 parent 1020402 commit 23d5090
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/input/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions include/linux/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 23d5090

Please sign in to comment.