On Tue, 2008-12-16 at 11:35 +0530, ext Trilok Soni wrote: > OK, I found other guys (android ??) using such home brew frameworks. > Time to write a switch framework. To start a discussion on what such a GPIO switch framework should be like if someone were to write it, here's a list of the kind of things I'd like to see in it (mostly from gpio-switch.c): * Based on or integrated in the gpiolib. * Dynamically changeable notification callbacks in kernel. * Sysfs notifications to userspace. * Debouncing for the notifications to filter spurious events. * Dynamically adjustable debounce timeouts. * Arbitrary names for the GPIOs in sysfs instead of (or in addition to) the gpiolib style "gpioN". Anything else? I didn't see anything in the Android source that couldn't be covered with this. Jani. -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html