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);
123 struct input_dev *input;
127 input = input_allocate_device();
128 if (!priv || !input) {
135 priv->input = input;
138 input->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);
140 __set_bit(BTN_TOUCH, input->keybit);
142 input_set_abs_params(input, ABS_X, 95, 955, 0, 0);
143 input_set_abs_params(input, ABS_Y, 85, 935, 0, 0);
145 input->name = client->name;
146 input->id.bustype = BUS_I2C;
147 input->dev.parent = &client->dev;
149 input->open = migor_ts_open;
150 input->close = migor_ts_close;
152 input_set_drvdata(input, priv);
162 error = input_register_device(input);
174 input_free_device(input);
184 input_unregister_device(priv->input);