Lines Matching refs:pwr
20 struct input_dev *pwr = _pwr; in pwrkey_fall_irq() local
22 input_report_key(pwr, KEY_POWER, 1); in pwrkey_fall_irq()
23 input_sync(pwr); in pwrkey_fall_irq()
30 struct input_dev *pwr = _pwr; in pwrkey_rise_irq() local
32 input_report_key(pwr, KEY_POWER, 0); in pwrkey_rise_irq()
33 input_sync(pwr); in pwrkey_rise_irq()
40 struct input_dev *pwr; in rk805_pwrkey_probe() local
44 pwr = devm_input_allocate_device(&pdev->dev); in rk805_pwrkey_probe()
45 if (!pwr) { in rk805_pwrkey_probe()
50 pwr->name = "rk805 pwrkey"; in rk805_pwrkey_probe()
51 pwr->phys = "rk805_pwrkey/input0"; in rk805_pwrkey_probe()
52 pwr->id.bustype = BUS_HOST; in rk805_pwrkey_probe()
53 input_set_capability(pwr, EV_KEY, KEY_POWER); in rk805_pwrkey_probe()
63 err = devm_request_any_context_irq(&pwr->dev, fall_irq, in rk805_pwrkey_probe()
66 "rk805_pwrkey_fall", pwr); in rk805_pwrkey_probe()
72 err = devm_request_any_context_irq(&pwr->dev, rise_irq, in rk805_pwrkey_probe()
75 "rk805_pwrkey_rise", pwr); in rk805_pwrkey_probe()
81 err = input_register_device(pwr); in rk805_pwrkey_probe()
87 platform_set_drvdata(pdev, pwr); in rk805_pwrkey_probe()