Lines Matching full:button
3 * adv_swbutton.c - Software Button Interface Driver.
31 struct adv_swbutton *button = dev_get_drvdata(&device->dev); in adv_swbutton_notify() local
35 input_report_key(button->input, KEY_PROG1, 0); in adv_swbutton_notify()
36 input_sync(button->input); in adv_swbutton_notify()
39 input_report_key(button->input, KEY_PROG1, 1); in adv_swbutton_notify()
40 input_sync(button->input); in adv_swbutton_notify()
49 struct adv_swbutton *button; in adv_swbutton_probe() local
55 button = devm_kzalloc(&device->dev, sizeof(*button), GFP_KERNEL); in adv_swbutton_probe()
56 if (!button) in adv_swbutton_probe()
59 dev_set_drvdata(&device->dev, button); in adv_swbutton_probe()
65 button->input = input; in adv_swbutton_probe()
66 snprintf(button->phys, sizeof(button->phys), "%s/button/input0", ACPI_BUTTON_HID_SWBTN); in adv_swbutton_probe()
68 input->name = "Advantech Software Button"; in adv_swbutton_probe()
69 input->phys = button->phys; in adv_swbutton_probe()
118 MODULE_DESCRIPTION("Advantech ACPI SW Button Driver");