Lines Matching refs:ponkey
37 struct ab8500_ponkey *ponkey = data; in ab8500_ponkey_handler() local
39 if (irq == ponkey->irq_dbf) in ab8500_ponkey_handler()
40 input_report_key(ponkey->idev, KEY_POWER, true); in ab8500_ponkey_handler()
41 else if (irq == ponkey->irq_dbr) in ab8500_ponkey_handler()
42 input_report_key(ponkey->idev, KEY_POWER, false); in ab8500_ponkey_handler()
44 input_sync(ponkey->idev); in ab8500_ponkey_handler()
52 struct ab8500_ponkey *ponkey; in ab8500_ponkey_probe() local
65 ponkey = devm_kzalloc(&pdev->dev, sizeof(struct ab8500_ponkey), in ab8500_ponkey_probe()
67 if (!ponkey) in ab8500_ponkey_probe()
74 ponkey->idev = input; in ab8500_ponkey_probe()
75 ponkey->ab8500 = ab8500; in ab8500_ponkey_probe()
76 ponkey->irq_dbf = irq_dbf; in ab8500_ponkey_probe()
77 ponkey->irq_dbr = irq_dbr; in ab8500_ponkey_probe()
84 error = devm_request_any_context_irq(&pdev->dev, ponkey->irq_dbf, in ab8500_ponkey_probe()
86 "ab8500-ponkey-dbf", ponkey); in ab8500_ponkey_probe()
89 ponkey->irq_dbf, error); in ab8500_ponkey_probe()
93 error = devm_request_any_context_irq(&pdev->dev, ponkey->irq_dbr, in ab8500_ponkey_probe()
95 "ab8500-ponkey-dbr", ponkey); in ab8500_ponkey_probe()
98 ponkey->irq_dbr, error); in ab8500_ponkey_probe()
102 error = input_register_device(ponkey->idev); in ab8500_ponkey_probe()