Lines Matching refs:poll_dev
36 struct input_polled_dev *poll_dev; member
149 struct input_polled_dev *poll_dev; in ts4800_ts_probe() local
167 poll_dev = devm_input_allocate_polled_device(&pdev->dev); in ts4800_ts_probe()
168 if (!poll_dev) in ts4800_ts_probe()
172 ts->poll_dev = poll_dev; in ts4800_ts_probe()
175 poll_dev->private = ts; in ts4800_ts_probe()
176 poll_dev->poll_interval = POLL_INTERVAL; in ts4800_ts_probe()
177 poll_dev->open = ts4800_ts_open; in ts4800_ts_probe()
178 poll_dev->close = ts4800_ts_close; in ts4800_ts_probe()
179 poll_dev->poll = ts4800_ts_poll; in ts4800_ts_probe()
181 poll_dev->input->name = "TS-4800 Touchscreen"; in ts4800_ts_probe()
182 poll_dev->input->phys = ts->phys; in ts4800_ts_probe()
184 input_set_capability(poll_dev->input, EV_KEY, BTN_TOUCH); in ts4800_ts_probe()
185 input_set_abs_params(poll_dev->input, ABS_X, 0, MAX_12BIT, 0, 0); in ts4800_ts_probe()
186 input_set_abs_params(poll_dev->input, ABS_Y, 0, MAX_12BIT, 0, 0); in ts4800_ts_probe()
188 error = input_register_polled_device(poll_dev); in ts4800_ts_probe()