[PATCH 0/2] Input: gpio-keys: support for disabling GPIOs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Dmitry,

This is a third proposal for disabling individual GPIO keys. Now I
implemented this as you suggested. There are now 4 new attributes
under sys/devices/platform/gpio-keys/:
	keys - keys that can be disabled (by keycode)
	switches - switches that can be disabled (by switch code)
	disabled_keys - keys that are currently disabled
	disabled_switches - switches that are currently disabled

I added those 2 attributes (keys and switches) so that userland
can find out what keys/switches are available. Hope this is OK
for you.

These are exported as bitmaps as you suggested (using
bitmap_scnlistprintf() and bitmap_parselist()).

Patches were made against branch 'next'. If these patches get accepted
I'll prepare patch for RX-51 (probably send it to linux-omap ml) where
GPIO buttons don't allow sharing the IRQ.

I tested this with RX-51.

Thanks,
MW

Mika Westerberg (2):
  Input: gpio-keys: allow drivers to specify whether IRQ can be shared
  Input: gpio-keys: added support for disabling gpios through sysfs

 drivers/input/keyboard/gpio_keys.c |  372 +++++++++++++++++++++++++++++++++++-
 include/linux/gpio_keys.h          |    1 +
 2 files changed, 367 insertions(+), 6 deletions(-)

--
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

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux