HID: mcp2221: Set ACPI companion
authorHamish Martin <hamish.martin@alliedtelesis.co.nz>
Wed, 25 Oct 2023 03:55:12 +0000 (16:55 +1300)
committerJiri Kosina <jkosina@suse.cz>
Tue, 21 Nov 2023 08:30:22 +0000 (09:30 +0100)
commitd9786159d229cdc1f579f7cf3abf464efb453e40
treedf6d48822e2314d0c6730080ace5e655498fc97d
parent4ea4ed22b57846facd9cb4af5f67cb7bd2792cf3
HID: mcp2221: Set ACPI companion

In scenarios where an I2C device tree is defined in ACPI and exists off
the MCP2221 I2C bus, the devices could not be instantiated.
Mark the USB port that the MCP2221 is connected to as its ACPI companion
so that the USB device can be bound to the ACPI tree when enumerated.
With this change the downstream I2C tree devices can be instantiated on
ACPI systems.

Signed-off-by: Hamish Martin <hamish.martin@alliedtelesis.co.nz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-mcp2221.c