Skip to content

Commit 3e48138

Browse files
aduggan-synaJiri Kosina
authored andcommitted
HID: i2c-hid: Do not set the ACPI companion field in the HID device
The HID device does not need to know about the ACPI device associated with the underlying i2c device. Setting the ACPI companion field in the HID device also has the side effect of causing HID to be set as wake capable, since acpi_bind_one uses's the companion ACPI device's wakeup flags to set the device as wake capable. Which results in power/wakeup files in sysfs for the HID device which do not do anything. Signed-off-by: Andrew Duggan <[email protected]> Reviewed-by: Benson Leung <[email protected]> Tested-by: Benson Leung <[email protected]> Acked-by: Mika Westerberg <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 6efdb11 commit 3e48138

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/hid/i2c-hid/i2c-hid.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,6 @@ static int i2c_hid_probe(struct i2c_client *client,
10191019
hid->driver_data = client;
10201020
hid->ll_driver = &i2c_hid_ll_driver;
10211021
hid->dev.parent = &client->dev;
1022-
ACPI_COMPANION_SET(&hid->dev, ACPI_COMPANION(&client->dev));
10231022
hid->bus = BUS_I2C;
10241023
hid->version = le16_to_cpu(ihid->hdesc.bcdVersion);
10251024
hid->vendor = le16_to_cpu(ihid->hdesc.wVendorID);

0 commit comments

Comments
 (0)