Lines Matching defs:input
11 #include <linux/input.h>
25 struct input_dev *input;
73 input_report_key(priv->input, BTN_TOUCH, 1);
74 input_report_abs(priv->input, ABS_X, ypos); /*X-Y swap*/
75 input_report_abs(priv->input, ABS_Y, xpos);
76 input_sync(priv->input);
80 input_report_key(priv->input, BTN_TOUCH, 0);
81 input_sync(priv->input);
122 struct input_dev *input;
126 input = input_allocate_device();
127 if (!priv || !input) {
134 priv->input = input;
137 input->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);
139 __set_bit(BTN_TOUCH, input->keybit);
141 input_set_abs_params(input, ABS_X, 95, 955, 0, 0);
142 input_set_abs_params(input, ABS_Y, 85, 935, 0, 0);
144 input->name = client->name;
145 input->id.bustype = BUS_I2C;
146 input->dev.parent = &client->dev;
148 input->open = migor_ts_open;
149 input->close = migor_ts_close;
151 input_set_drvdata(input, priv);
161 error = input_register_device(input);
173 input_free_device(input);
183 input_unregister_device(priv->input);