summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <greg@kroah.com>2004-01-19 00:38:36 -0800
committerGreg Kroah-Hartman <greg@kroah.com>2004-01-19 00:38:36 -0800
commite5da64c4f47e45a433214ef4325d01f6d1d7efa2 (patch)
tree6ec98b509254e1ec32f405014b2f4efb39f98266 /include/linux
parent90635a76999bc97e043e609e0682b62c414cb7eb (diff)
[PATCH] Input: add sysfs class support for input devices
This patch adds sysfs support for all input devices. It also provides the "device" and "driver" symlink for all Input devices that specify it.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/input.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/input.h b/include/linux/input.h
index eff36f445c25..4cb08d4fbd5e 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -809,6 +809,7 @@ struct input_dev {
int (*erase_effect)(struct input_dev *dev, int effect_id);
struct input_handle *grab;
+ struct device *dev;
struct list_head h_list;
struct list_head node;
@@ -921,7 +922,7 @@ void input_event(struct input_dev *dev, unsigned int type, unsigned int code, in
#define input_regs(a,b) do { (a)->regs = (b); } while (0)
#define input_sync(a) do { input_event(a, EV_SYN, SYN_REPORT, 0); (a)->regs = NULL; } while (0)
-extern struct class input_class;
+extern struct class_simple *input_class;
#endif
#endif