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