Lines Matching refs:button
51 struct ebook_switch *button = acpi_driver_data(device); in ebook_send_state() local
60 input_report_switch(button->input, SW_TABLET_MODE, !state); in ebook_send_state()
61 input_sync(button->input); in ebook_send_state()
90 struct ebook_switch *button; in ebook_switch_add() local
96 button = kzalloc(sizeof(struct ebook_switch), GFP_KERNEL); in ebook_switch_add()
97 if (!button) in ebook_switch_add()
100 device->driver_data = button; in ebook_switch_add()
102 button->input = input = input_allocate_device(); in ebook_switch_add()
120 snprintf(button->phys, sizeof(button->phys), "%s/button/input0", hid); in ebook_switch_add()
123 input->phys = button->phys; in ebook_switch_add()
148 kfree(button); in ebook_switch_add()
154 struct ebook_switch *button = acpi_driver_data(device); in ebook_switch_remove() local
156 input_unregister_device(button->input); in ebook_switch_remove()
157 kfree(button); in ebook_switch_remove()