Home
last modified time | relevance | path

Searched refs:power_button_idev (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.4/arch/x86/platform/olpc/
Dolpc-xo1-sci.c32 static struct input_dev *power_button_idev; variable
233 input_report_key(power_button_idev, KEY_POWER, 1); in xo1_sci_intr()
234 input_sync(power_button_idev); in xo1_sci_intr()
235 input_report_key(power_button_idev, KEY_POWER, 0); in xo1_sci_intr()
236 input_sync(power_button_idev); in xo1_sci_intr()
239 pm_wakeup_event(&power_button_idev->dev, 0); in xo1_sci_intr()
269 if (device_may_wakeup(&power_button_idev->dev)) in xo1_sci_suspend()
441 power_button_idev = input_allocate_device(); in setup_power_button()
442 if (!power_button_idev) in setup_power_button()
445 power_button_idev->name = "Power Button"; in setup_power_button()
[all …]