Lines Matching refs:button
4 * (based on generic ACPI button driver)
45 struct ebook_switch *button = acpi_driver_data(device);
54 input_report_switch(button->input, SW_TABLET_MODE, !state);
55 input_sync(button->input);
84 struct ebook_switch *button;
90 button = kzalloc(sizeof(struct ebook_switch), GFP_KERNEL);
91 if (!button)
94 device->driver_data = button;
96 button->input = input = input_allocate_device();
114 snprintf(button->phys, sizeof(button->phys), "%s/button/input0", hid);
117 input->phys = button->phys;
142 kfree(button);
148 struct ebook_switch *button = acpi_driver_data(device);
150 input_unregister_device(button->input);
151 kfree(button);