Lines Matching refs:input
15 #include <linux/input.h>
263 struct input_dev *input;
302 input = devm_input_allocate_device(dev);
303 if (!input) {
304 dev_err(dev, "Failed to allocate TS input device\n");
308 input->name = DRIVER_NAME;
309 input->id.bustype = BUS_HOST;
310 input->dev.parent = dev;
311 input->open = vf50_ts_open;
312 input->close = vf50_ts_close;
314 input_set_capability(input, EV_KEY, BTN_TOUCH);
315 input_set_abs_params(input, ABS_X, 0, VF_ADC_MAX, 0, 0);
316 input_set_abs_params(input, ABS_Y, 0, VF_ADC_MAX, 0, 0);
317 input_set_abs_params(input, ABS_PRESSURE, 0, VF_ADC_MAX, 0, 0);
319 touchdev->ts_input = input;
320 input_set_drvdata(input, touchdev);
322 error = input_register_device(input);
324 dev_err(dev, "Failed to register input device\n");