Lines Matching defs:device
40 char phys[32]; /* for input device */
43 static int ebook_send_state(struct acpi_device *device)
45 struct ebook_switch *button = acpi_driver_data(device);
49 status = acpi_evaluate_integer(device->handle, "EBK", NULL, &state);
59 static void ebook_switch_notify(struct acpi_device *device, u32 event)
64 ebook_send_state(device);
67 acpi_handle_debug(device->handle,
74 static int ebook_switch_resume(struct device *dev)
82 static int ebook_switch_add(struct acpi_device *device)
94 device->driver_data = button;
102 name = acpi_device_name(device);
103 class = acpi_device_class(device);
105 id = acpi_match_acpi_device(ebook_device_ids, device);
107 dev_err(&device->dev, "Unsupported hid\n");
120 input->dev.parent = &device->dev;
129 ebook_send_state(device);
131 if (device->wakeup.flags.valid) {
133 acpi_enable_gpe(device->wakeup.gpe_device,
134 device->wakeup.gpe_number);
135 device_set_wakeup_enable(&device->dev, true);
147 static void ebook_switch_remove(struct acpi_device *device)
149 struct ebook_switch *button = acpi_driver_data(device);