Lines Matching refs: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)
86 const char *hid = acpi_device_hid(device);
94 device->driver_data = button;
102 name = acpi_device_name(device);
103 class = acpi_device_class(device);
119 input->dev.parent = &device->dev;
128 ebook_send_state(device);
130 if (device->wakeup.flags.valid) {
132 acpi_enable_gpe(device->wakeup.gpe_device,
133 device->wakeup.gpe_number);
134 device_set_wakeup_enable(&device->dev, true);
146 static void ebook_switch_remove(struct acpi_device *device)
148 struct ebook_switch *button = acpi_driver_data(device);