Skip to content

Commit

Permalink
Merge branch 'for-4.17/hid-i2c' into for-linus
Browse files Browse the repository at this point in the history
Small hid-i2c acpi cleanup.
  • Loading branch information
Jiri Kosina committed Apr 5, 2018
2 parents 7a8c1c4 + 8afede1 commit f73fee7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/hid/i2c-hid/i2c-hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -892,10 +892,10 @@ static int i2c_hid_acpi_pdata(struct i2c_client *client,

static void i2c_hid_acpi_fix_up_power(struct device *dev)
{
acpi_handle handle = ACPI_HANDLE(dev);
struct acpi_device *adev;

if (handle && acpi_bus_get_device(handle, &adev) == 0)
adev = ACPI_COMPANION(dev);
if (adev)
acpi_device_fix_up_power(adev);
}

Expand Down

0 comments on commit f73fee7

Please sign in to comment.