Lines Matching refs:ihid_acpi
56 static int i2c_hid_acpi_get_descriptor(struct i2c_hid_acpi *ihid_acpi) in i2c_hid_acpi_get_descriptor() argument
58 struct acpi_device *adev = ihid_acpi->adev; in i2c_hid_acpi_get_descriptor()
81 struct i2c_hid_acpi *ihid_acpi = container_of(ops, struct i2c_hid_acpi, ops); in i2c_hid_acpi_shutdown_tail() local
83 acpi_device_set_power(ihid_acpi->adev, ACPI_STATE_D3_COLD); in i2c_hid_acpi_shutdown_tail()
89 struct i2c_hid_acpi *ihid_acpi; in i2c_hid_acpi_probe() local
93 ihid_acpi = devm_kzalloc(&client->dev, sizeof(*ihid_acpi), GFP_KERNEL); in i2c_hid_acpi_probe()
94 if (!ihid_acpi) in i2c_hid_acpi_probe()
97 ihid_acpi->adev = ACPI_COMPANION(dev); in i2c_hid_acpi_probe()
98 ihid_acpi->ops.shutdown_tail = i2c_hid_acpi_shutdown_tail; in i2c_hid_acpi_probe()
100 ret = i2c_hid_acpi_get_descriptor(ihid_acpi); in i2c_hid_acpi_probe()
105 acpi_device_fix_up_power(ihid_acpi->adev); in i2c_hid_acpi_probe()
107 return i2c_hid_core_probe(client, &ihid_acpi->ops, in i2c_hid_acpi_probe()