Lines Matching refs:input
38 struct input_dev *input; member
86 input_report_key(priv->input, BTN_TOUCH, 1); in migor_ts_isr()
87 input_report_abs(priv->input, ABS_X, ypos); /*X-Y swap*/ in migor_ts_isr()
88 input_report_abs(priv->input, ABS_Y, xpos); in migor_ts_isr()
89 input_sync(priv->input); in migor_ts_isr()
93 input_report_key(priv->input, BTN_TOUCH, 0); in migor_ts_isr()
94 input_sync(priv->input); in migor_ts_isr()
136 struct input_dev *input; in migor_ts_probe() local
140 input = input_allocate_device(); in migor_ts_probe()
141 if (!priv || !input) { in migor_ts_probe()
148 priv->input = input; in migor_ts_probe()
151 input->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); in migor_ts_probe()
153 __set_bit(BTN_TOUCH, input->keybit); in migor_ts_probe()
155 input_set_abs_params(input, ABS_X, 95, 955, 0, 0); in migor_ts_probe()
156 input_set_abs_params(input, ABS_Y, 85, 935, 0, 0); in migor_ts_probe()
158 input->name = client->name; in migor_ts_probe()
159 input->id.bustype = BUS_I2C; in migor_ts_probe()
160 input->dev.parent = &client->dev; in migor_ts_probe()
162 input->open = migor_ts_open; in migor_ts_probe()
163 input->close = migor_ts_close; in migor_ts_probe()
165 input_set_drvdata(input, priv); in migor_ts_probe()
175 error = input_register_device(input); in migor_ts_probe()
187 input_free_device(input); in migor_ts_probe()
197 input_unregister_device(priv->input); in migor_ts_remove()