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>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user