Lines Matching refs:pwrbtn
245 struct input_dev *pwrbtn; member
430 input_report_key(priv->pwrbtn, KEY_POWER, 1); in olpc_xo175_ec_complete()
431 input_sync(priv->pwrbtn); in olpc_xo175_ec_complete()
432 input_report_key(priv->pwrbtn, KEY_POWER, 0); in olpc_xo175_ec_complete()
433 input_sync(priv->pwrbtn); in olpc_xo175_ec_complete()
437 pm_wakeup_event(priv->pwrbtn->dev.parent, in olpc_xo175_ec_complete()
692 priv->pwrbtn = devm_input_allocate_device(&spi->dev); in olpc_xo175_ec_probe()
693 if (!priv->pwrbtn) in olpc_xo175_ec_probe()
695 priv->pwrbtn->name = "Power Button"; in olpc_xo175_ec_probe()
696 priv->pwrbtn->dev.parent = &spi->dev; in olpc_xo175_ec_probe()
697 input_set_capability(priv->pwrbtn, EV_KEY, KEY_POWER); in olpc_xo175_ec_probe()
698 ret = input_register_device(priv->pwrbtn); in olpc_xo175_ec_probe()