On Fri, Feb 27, 2009 at 01:30:15PM -0500, hartleys wrote: > On Friday, February 27, 2009 11:01 AM, Daniel Mack wrote: > > This patch adds a generic driver for rotary encoders connected to > > GPIO pins of a system. It relies on gpiolib and generic hardware > > irqs. The documentation that also comes with this patch explains > > the concept and how to use the driver. > > > > Signed-off-by: Daniel Mack <daniel@xxxxxxxx> > > --- > > new version as discussed on linux-input. > > Works great now on the ep93xx with no changes. Glad to hear that :) > I have a minor patch to it that allows the platform init to configure > the absolute/relative axis to report the encoder on. If you would like > to see it I can put together a patch. Yes, and probably just post it as follow-up as soon as this one has been commited. I'm new to this list, so I don't know who can/will/wants to do this? > Also, any ideas if the driver could be modified to support more that one > rotary encoder? > > It might be possible to load driver multiple times, once for each > encoder, but then all the events show up in different /dev/input/event* > places. That would have been my idea as well. It doesn't really matter how many input devices you listen to from user space and as the number of encoders on a certain board is not dynamic, I don't see much reason to put any efford in this ;) Daniel -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html