Lines Matching refs:input_dev
80 struct input_dev *input_dev; member
134 input_report_abs(data->input_dev, ABS_X, x); in max11801_ts_interrupt()
135 input_report_abs(data->input_dev, ABS_Y, y); in max11801_ts_interrupt()
136 input_event(data->input_dev, EV_KEY, BTN_TOUCH, 1); in max11801_ts_interrupt()
137 input_sync(data->input_dev); in max11801_ts_interrupt()
141 input_event(data->input_dev, EV_KEY, BTN_TOUCH, 0); in max11801_ts_interrupt()
142 input_sync(data->input_dev); in max11801_ts_interrupt()
175 struct input_dev *input_dev; in max11801_ts_probe() local
179 input_dev = devm_input_allocate_device(&client->dev); in max11801_ts_probe()
180 if (!data || !input_dev) { in max11801_ts_probe()
186 data->input_dev = input_dev; in max11801_ts_probe()
188 input_dev->name = "max11801_ts"; in max11801_ts_probe()
189 input_dev->id.bustype = BUS_I2C; in max11801_ts_probe()
190 input_dev->dev.parent = &client->dev; in max11801_ts_probe()
192 __set_bit(EV_ABS, input_dev->evbit); in max11801_ts_probe()
193 __set_bit(EV_KEY, input_dev->evbit); in max11801_ts_probe()
194 __set_bit(BTN_TOUCH, input_dev->keybit); in max11801_ts_probe()
195 input_set_abs_params(input_dev, ABS_X, 0, MAX11801_MAX_X, 0, 0); in max11801_ts_probe()
196 input_set_abs_params(input_dev, ABS_Y, 0, MAX11801_MAX_Y, 0, 0); in max11801_ts_probe()
209 error = input_register_device(data->input_dev); in max11801_ts_probe()