Input: keyboards - switch to using input_dev->dev.parent
In preparation for struct class_device -> struct device input core conversion, switch to using input_dev->dev.parent when specifying device position in sysfs tree. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
@@ -883,7 +883,7 @@ static void atkbd_set_device_attrs(struct atkbd *atkbd)
|
||||
input_dev->id.product = atkbd->translated ? 1 : atkbd->set;
|
||||
input_dev->id.version = atkbd->id;
|
||||
input_dev->event = atkbd_event;
|
||||
input_dev->cdev.dev = &atkbd->ps2dev.serio->dev;
|
||||
input_dev->dev.parent = &atkbd->ps2dev.serio->dev;
|
||||
|
||||
input_set_drvdata(input_dev, atkbd);
|
||||
|
||||
|
Reference in New Issue
Block a user