Lines Matching refs:input_dev
318 struct input_dev *input = ts->input;
530 static int cyttsp_open(struct input_dev *dev)
541 static void cyttsp_close(struct input_dev *dev)
630 struct input_dev *input_dev;
637 input_dev = devm_input_allocate_device(dev);
638 if (!input_dev)
642 ts->input = input_dev;
685 input_dev->name = "Cypress TTSP TouchScreen";
686 input_dev->id.bustype = bus_ops->bustype;
687 input_dev->dev.parent = ts->dev;
689 input_dev->open = cyttsp_open;
690 input_dev->close = cyttsp_close;
692 input_set_drvdata(input_dev, ts);
694 input_set_capability(input_dev, EV_ABS, ABS_MT_POSITION_X);
695 input_set_capability(input_dev, EV_ABS, ABS_MT_POSITION_Y);
697 input_set_abs_params(input_dev, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0);
699 touchscreen_parse_properties(input_dev, true, NULL);
701 error = input_mt_init_slots(input_dev, CY_MAX_ID, INPUT_MT_DIRECT);
722 error = input_register_device(input_dev);