[RFC PATCH 0/1] Enabling/disabling separate gpio-keys buttons

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

 



Some embedded devices use gpio lines as keys/buttons through gpio-keys.
Current implementation doesn't allow one to enable/disable these buttons
separately.

Example use-case would be that when phone is locked in our pocket,
we don't want it to woken up when camera key gets accidentally pressed.

Following patch exports gpio-keys through sysfs to userland and allows
userland programs to control whether gpio line (button/key) is disabled
or enabled.

Thanks,
MW


Mika Westerberg (1):
  Input: gpio-keys: export gpio key information through sysfs

 drivers/input/keyboard/gpio_keys.c |  162 ++++++++++++++++++++++++++++++++++++
 1 files changed, 162 insertions(+), 0 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