Good point. I guess it's going to be a while before we work out an
anywhere near
exhaustive list of such events that we might want to be able to control.
I know that feeling!
Looking at the code (briefly admittedly, I'll have a closer look
tomorrow) it looks like a nice simple and
effective interface.
The question here, is what functionality of the system under discussion
does it fulfill. Again we are in the
territory of possibly having multiple drivers for a device depending on
how it is being used in the kernel.
Not ideal, but may in fact be more maintainable in the long run.
The sysfs interface looks similar to that I was intending to implement,
but obviously for your application you
don't need any of the buffering support etc and it makes sense to keep
everything as simple as possible.
Perhaps if we aim to keep in mind the possibility of combining your ADC
system with a more general
input device system, it may make sense to do so at a later stage.
Anything I write is certainly going to share a considerable amount of
functionality and approach with your code.
I'll keep these part in mind, as a the moment adding any component for
testing involves me getting my soldering iron out
and I hate soldering!
Thanks. I'll have a look at the stuff above and pester you if I need a
more recent version.
Jonathan
--