From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mika Westerberg Subject: [RFC PATCH 0/1] Enabling/disabling separate gpio-keys buttons Date: Fri, 23 Oct 2009 15:15:45 +0300 Message-ID: Return-path: Received: from smtp.nokia.com ([192.100.122.230]:61953 "EHLO mgw-mx03.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751625AbZJWMTr (ORCPT ); Fri, 23 Oct 2009 08:19:47 -0400 Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org 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(-)