Lines Matching defs:input
5 #include <linux/input.h>
6 #include <linux/input/mt.h>
7 #include <linux/input/touchscreen.h>
43 struct input_dev *input;
276 struct input_dev *input = priv->input;
284 input_mt_slot(input, i);
285 if (input_mt_report_slot_state(input, MT_TOOL_FINGER, touch)) {
286 touchscreen_report_pos(input, &priv->prop, x, y, true);
288 input_report_abs(input, ABS_MT_PRESSURE, z);
293 input_mt_report_pointer_emulation(input, false);
294 input_sync(input);
394 struct input_dev *input;
432 input = devm_input_allocate_device(dev);
433 if (!input)
437 priv->input = input;
442 /* Setup input device */
443 input->name = "ILI210x Touchscreen";
444 input->id.bustype = BUS_I2C;
448 input_set_abs_params(input, ABS_MT_POSITION_X, 0, max_xy, 0, 0);
449 input_set_abs_params(input, ABS_MT_POSITION_Y, 0, max_xy, 0, 0);
451 input_set_abs_params(input, ABS_MT_PRESSURE, 0, 0xa, 0, 0);
452 touchscreen_parse_properties(input, true, &priv->prop);
454 error = input_mt_init_slots(input, priv->chip->max_touches,
480 error = input_register_device(priv->input);
482 dev_err(dev, "Cannot register input device, err: %d\n", error);