Lines Matching defs:input
11 #include <linux/input.h>
12 #include <linux/input/mt.h>
13 #include <linux/input/touchscreen.h>
51 struct input_dev *input;
132 input_mt_slot(tsdata->input, id);
133 if (input_mt_report_slot_state(tsdata->input, MT_TOOL_FINGER,
135 touchscreen_report_pos(tsdata->input, &tsdata->prop,
139 input_mt_report_pointer_emulation(tsdata->input, false);
140 input_sync(tsdata->input);
445 struct input_dev *input;
492 input = devm_input_allocate_device(&client->dev);
493 if (!input) {
494 dev_err(&client->dev, "failed to allocate input device.\n");
500 tsdata->input = input;
512 input->name = "Hycon Capacitive Touch";
513 input->id.bustype = BUS_I2C;
514 input->dev.parent = &client->dev;
516 input_set_abs_params(input, ABS_MT_POSITION_X, 0, -1, 0, 0);
517 input_set_abs_params(input, ABS_MT_POSITION_Y, 0, -1, 0, 0);
519 touchscreen_parse_properties(input, true, &tsdata->prop);
521 error = input_mt_init_slots(input, HY46XX_MAX_SUPPORTED_POINTS,
542 error = input_register_device(input);