Lines Matching full:button
4 * (based on generic ACPI button driver)
45 struct ebook_switch *button = acpi_driver_data(device); in ebook_send_state() local
54 input_report_switch(button->input, SW_TABLET_MODE, !state); in ebook_send_state()
55 input_sync(button->input); in ebook_send_state()
85 struct ebook_switch *button; in ebook_switch_add() local
90 button = kzalloc(sizeof(struct ebook_switch), GFP_KERNEL); in ebook_switch_add()
91 if (!button) in ebook_switch_add()
94 device->driver_data = button; in ebook_switch_add()
96 button->input = input = input_allocate_device(); in ebook_switch_add()
115 snprintf(button->phys, sizeof(button->phys), "%s/button/input0", id->id); in ebook_switch_add()
118 input->phys = button->phys; in ebook_switch_add()
132 /* Button's GPE is run-wake GPE */ in ebook_switch_add()
143 kfree(button); in ebook_switch_add()
149 struct ebook_switch *button = acpi_driver_data(device); in ebook_switch_remove() local
151 input_unregister_device(button->input); in ebook_switch_remove()
152 kfree(button); in ebook_switch_remove()