Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1961,6 +1961,7 @@ static int acpi_video_bus_add(struct acpi_device *device)
	input->phys = video->phys;
	input->id.bustype = BUS_HOST;
	input->id.product = 0x06;
	input->dev.parent = &device->dev;
	input->evbit[0] = BIT(EV_KEY);
	set_bit(KEY_SWITCHVIDEOMODE, input->keybit);
	set_bit(KEY_VIDEO_NEXT, input->keybit);