On 03/08/14 16:08, gmane@xxxxxxxxxxxxxxxxxxxxxxxxxxx wrote: > Hi, > > On 2014-08-03 04:56, Alexandre Belloni wrote: >> Hi Robert, > >> >> Did you have a look at uinput? This would allow you to inject input >> events after processing the ADC values in userspace. >> >> Simple example: http://thiemonge.org/getting-started-with-uinput > > Thanks this looks interesting. I had in the meantime a look at iio_hwmon [1] which does something similar to what I want > for the hwmon subsystem instead of the input event subsystem. There is a rather aged iio_input driver, that uses the buffered interface (not polled) and could probably be adapted to your usecase reasonably easily. The case is different enough that I'd probably suggest a new driver for it though rather than trying to blugeon it into the existing driver. http://www.spinics.net/lists/linux-iio/msg06881.html (latest version I think). The infrastructure for this went in back then, but the input driver never quite got the attention it needed. One big issue outstanding around this stuff is that no one likes the device tree bindings. Probably doesn't matter for your project in the short term however! Jonathan > > Regards, > > Robert > > [1] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/hwmon/iio_hwmon.c?id=refs/tags/v3.16-rc7 = -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html