Lines Matching refs:button
4 * (based on generic ACPI button driver)
47 struct ebook_switch *button = acpi_driver_data(device);
56 input_report_switch(button->input, SW_TABLET_MODE, !state);
57 input_sync(button->input);
86 struct ebook_switch *button;
92 button = kzalloc(sizeof(struct ebook_switch), GFP_KERNEL);
93 if (!button)
96 device->driver_data = button;
98 button->input = input = input_allocate_device();
116 snprintf(button->phys, sizeof(button->phys), "%s/button/input0", hid);
119 input->phys = button->phys;
144 kfree(button);
150 struct ebook_switch *button = acpi_driver_data(device);
152 input_unregister_device(button->input);
153 kfree(button);