Lines Matching defs:onkey
28 struct stpmic1_onkey *onkey = ponkey;
29 struct input_dev *input_dev = onkey->input_dev;
40 struct stpmic1_onkey *onkey = ponkey;
41 struct input_dev *input_dev = onkey->input_dev;
55 struct stpmic1_onkey *onkey;
59 onkey = devm_kzalloc(dev, sizeof(*onkey), GFP_KERNEL);
60 if (!onkey)
63 onkey->irq_falling = platform_get_irq_byname(pdev, "onkey-falling");
64 if (onkey->irq_falling < 0)
65 return onkey->irq_falling;
67 onkey->irq_rising = platform_get_irq_byname(pdev, "onkey-rising");
68 if (onkey->irq_rising < 0)
69 return onkey->irq_rising;
82 if (device_property_present(dev, "st,onkey-clear-cc-flag"))
92 if (device_property_present(dev, "st,onkey-pu-inactive")) {
114 onkey->input_dev = input_dev;
117 error = devm_request_threaded_irq(dev, onkey->irq_falling, NULL,
119 dev_name(dev), onkey);
125 error = devm_request_threaded_irq(dev, onkey->irq_rising, NULL,
127 dev_name(dev), onkey);
139 platform_set_drvdata(pdev, onkey);
148 struct stpmic1_onkey *onkey = platform_get_drvdata(pdev);
151 enable_irq_wake(onkey->irq_falling);
152 enable_irq_wake(onkey->irq_rising);
160 struct stpmic1_onkey *onkey = platform_get_drvdata(pdev);
163 disable_irq_wake(onkey->irq_falling);
164 disable_irq_wake(onkey->irq_rising);
174 { .compatible = "st,stpmic1-onkey" },