Commit 91c05c66 authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by Len Brown

ACPI: video - fit input device into sysfs tree

Properly set up parent on input device registered by the video driver.
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
Acked-by: default avatarZhang Rui <rui.zhang@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 9418d5dc
...@@ -1961,6 +1961,7 @@ static int acpi_video_bus_add(struct acpi_device *device) ...@@ -1961,6 +1961,7 @@ static int acpi_video_bus_add(struct acpi_device *device)
input->phys = video->phys; input->phys = video->phys;
input->id.bustype = BUS_HOST; input->id.bustype = BUS_HOST;
input->id.product = 0x06; input->id.product = 0x06;
input->dev.parent = &device->dev;
input->evbit[0] = BIT(EV_KEY); input->evbit[0] = BIT(EV_KEY);
set_bit(KEY_SWITCHVIDEOMODE, input->keybit); set_bit(KEY_SWITCHVIDEOMODE, input->keybit);
set_bit(KEY_VIDEO_NEXT, input->keybit); set_bit(KEY_VIDEO_NEXT, input->keybit);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment