diff options
author | Dmitry Torokhov <dtor@insightbb.com> | 2007-04-12 01:34:47 -0400 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2007-04-12 01:34:47 -0400 |
commit | 88a447a030bfec9f1e8666daf27d9d73c8c92448 (patch) | |
tree | 950840ba1271c2129d48692f4deab2fa661bd0a5 /include/linux/input.h | |
parent | 7791bdae71243050132ede7ea1558c828b69458f (diff) | |
download | kernel_samsung_tuna-88a447a030bfec9f1e8666daf27d9d73c8c92448.zip kernel_samsung_tuna-88a447a030bfec9f1e8666daf27d9d73c8c92448.tar.gz kernel_samsung_tuna-88a447a030bfec9f1e8666daf27d9d73c8c92448.tar.bz2 |
Input: prepare to switching to struct device
In preparation to switching to struct device and class device
going away provide an alias to allow drivers that create devices
to use either input_dev->cdev.dev or input_dev->dev.parent to
put them into sysfs tree. The former will go away once conversion
to struct device is complete.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include/linux/input.h')
-rw-r--r-- | include/linux/input.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/input.h b/include/linux/input.h index d0bea97..7b6d7c4 100644 --- a/include/linux/input.h +++ b/include/linux/input.h @@ -972,6 +972,9 @@ struct input_dev { unsigned int users; struct class_device cdev; + union { /* temporarily so while we switching to struct device */ + struct device *parent; + } dev; struct list_head h_list; struct list_head node; |