Lines Matching refs:poll_dev
27 struct input_polled_dev *poll_dev; member
56 static void gpio_decoder_poll_gpios(struct input_polled_dev *poll_dev) in gpio_decoder_poll_gpios() argument
58 struct gpio_decoder *decoder = poll_dev->private; in gpio_decoder_poll_gpios()
63 input_report_abs(poll_dev->input, decoder->axis, state); in gpio_decoder_poll_gpios()
64 input_sync(poll_dev->input); in gpio_decoder_poll_gpios()
73 struct input_polled_dev *poll_dev; in gpio_decoder_probe() local
96 poll_dev = devm_input_allocate_polled_device(decoder->dev); in gpio_decoder_probe()
97 if (!poll_dev) in gpio_decoder_probe()
100 poll_dev->private = decoder; in gpio_decoder_probe()
101 poll_dev->poll = gpio_decoder_poll_gpios; in gpio_decoder_probe()
102 decoder->poll_dev = poll_dev; in gpio_decoder_probe()
104 poll_dev->input->name = pdev->name; in gpio_decoder_probe()
105 poll_dev->input->id.bustype = BUS_HOST; in gpio_decoder_probe()
106 input_set_abs_params(poll_dev->input, decoder->axis, 0, max, 0, 0); in gpio_decoder_probe()
108 err = input_register_polled_device(poll_dev); in gpio_decoder_probe()