Lines Matching full:button
100 struct input_dev *button; in loongson2_power_button_init() local
102 button = input_allocate_device(); in loongson2_power_button_init()
106 button->name = "Power Button"; in loongson2_power_button_init()
107 button->phys = "pm/button/input0"; in loongson2_power_button_init()
108 button->id.bustype = BUS_HOST; in loongson2_power_button_init()
109 button->dev.parent = NULL; in loongson2_power_button_init()
110 input_set_capability(button, EV_KEY, KEY_POWER); in loongson2_power_button_init()
112 ret = input_register_device(button); in loongson2_power_button_init()
116 dev_pm_set_wake_irq(&button->dev, irq); in loongson2_power_button_init()
117 device_set_wakeup_capable(&button->dev, true); in loongson2_power_button_init()
118 device_set_wakeup_enable(&button->dev, true); in loongson2_power_button_init()
120 loongson2_pm.dev = button; in loongson2_power_button_init()
121 dev_info(dev, "Power Button: Init successful!\n"); in loongson2_power_button_init()
126 input_free_device(button); in loongson2_power_button_init()
136 pr_info("Power Button pressed...\n"); in loongson2_pm_irq_handler()