Lines Matching refs:acpi_dev
21 struct acpi_device *acpi_dev; member
63 handle = acpi_device_handle(data->acpi_dev); in system76_get()
83 handle = acpi_device_handle(data->acpi_dev); in system76_set()
274 static void system76_notify(struct acpi_device *acpi_dev, u32 event) in system76_notify() argument
278 data = acpi_driver_data(acpi_dev); in system76_notify()
299 static int system76_add(struct acpi_device *acpi_dev) in system76_add() argument
304 data = devm_kzalloc(&acpi_dev->dev, sizeof(*data), GFP_KERNEL); in system76_add()
307 acpi_dev->driver_data = data; in system76_add()
308 data->acpi_dev = acpi_dev; in system76_add()
319 err = devm_led_classdev_register(&acpi_dev->dev, &data->ap_led); in system76_add()
327 if (acpi_has_method(acpi_device_handle(data->acpi_dev), "SKBC")) { in system76_add()
336 err = devm_led_classdev_register(&acpi_dev->dev, &data->kb_led); in system76_add()
353 static int system76_remove(struct acpi_device *acpi_dev) in system76_remove() argument
357 data = acpi_driver_data(acpi_dev); in system76_remove()
361 devm_led_classdev_unregister(&acpi_dev->dev, &data->ap_led); in system76_remove()
363 devm_led_classdev_unregister(&acpi_dev->dev, &data->kb_led); in system76_remove()