Lines Matching defs:input
10 #include <linux/input.h>
31 struct input_dev *input;
52 pm_wakeup_event(priv->input->dev.parent, 0);
64 struct input_dev *input = priv->input;
77 dev_err(&input->dev, "read imx sc key failed, error %d\n", error);
91 input_event(input, EV_KEY, priv->keycode, state);
92 input_sync(input);
94 pm_relax(priv->input->dev.parent);
114 struct input_dev *input;
133 input = devm_input_allocate_device(&pdev->dev);
134 if (!input) {
135 dev_err(&pdev->dev, "failed to allocate the input device\n");
139 input->name = pdev->name;
140 input->phys = "imx-sc-key/input0";
141 input->id.bustype = BUS_HOST;
143 input_set_capability(input, EV_KEY, priv->keycode);
145 error = input_register_device(input);
147 dev_err(&pdev->dev, "failed to register input device\n");
151 priv->input = input;