Lines Matching refs:pwr
39 struct input_dev *pwr = _pwr; in powerbutton_irq() local
45 pm_wakeup_event(pwr->dev.parent, 0); in powerbutton_irq()
46 input_report_key(pwr, KEY_POWER, value & PWR_PWRON_IRQ); in powerbutton_irq()
47 input_sync(pwr); in powerbutton_irq()
49 dev_err(pwr->dev.parent, "twl4030: i2c error %d while reading" in powerbutton_irq()
58 struct input_dev *pwr; in twl4030_pwrbutton_probe() local
62 pwr = devm_input_allocate_device(&pdev->dev); in twl4030_pwrbutton_probe()
63 if (!pwr) { in twl4030_pwrbutton_probe()
68 input_set_capability(pwr, EV_KEY, KEY_POWER); in twl4030_pwrbutton_probe()
69 pwr->name = "twl4030_pwrbutton"; in twl4030_pwrbutton_probe()
70 pwr->phys = "twl4030_pwrbutton/input0"; in twl4030_pwrbutton_probe()
71 pwr->dev.parent = &pdev->dev; in twl4030_pwrbutton_probe()
76 "twl4030_pwrbutton", pwr); in twl4030_pwrbutton_probe()
82 err = input_register_device(pwr); in twl4030_pwrbutton_probe()