Lines Matching defs:dev
32 pm_wakeup_event(idev->dev.parent, 0);
38 static int __maybe_unused e3x0_button_suspend(struct device *dev)
40 struct platform_device *pdev = to_platform_device(dev);
42 if (device_may_wakeup(dev))
48 static int __maybe_unused e3x0_button_resume(struct device *dev)
50 struct platform_device *pdev = to_platform_device(dev);
52 if (device_may_wakeup(dev))
75 input = devm_input_allocate_device(&pdev->dev);
81 input->dev.parent = &pdev->dev;
85 error = devm_request_irq(&pdev->dev, irq_press,
89 dev_err(&pdev->dev, "Failed to request 'press' IRQ#%d: %d\n",
94 error = devm_request_irq(&pdev->dev, irq_release,
98 dev_err(&pdev->dev, "Failed to request 'release' IRQ#%d: %d\n",
105 dev_err(&pdev->dev, "Can't register input device: %d\n", error);
109 device_init_wakeup(&pdev->dev, 1);