Lines Matching refs:button
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()
84 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()
114 snprintf(button->phys, sizeof(button->phys), "%s/button/input0", hid); in ebook_switch_add()
117 input->phys = button->phys; in ebook_switch_add()
142 kfree(button); in ebook_switch_add()
148 struct ebook_switch *button = acpi_driver_data(device); in ebook_switch_remove() local
150 input_unregister_device(button->input); in ebook_switch_remove()
151 kfree(button); in ebook_switch_remove()