From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dmitry Torokhov Subject: Re: [RFC] [PATCH] input: export gpio-keys driven switch status over gpiolib sysfs Date: Wed, 10 Jun 2009 23:18:56 -0700 Message-ID: <20090611061855.GA8035@dtor-d630.eng.vmware.com> References: <200906050039.40050.jkrzyszt@tis.icnet.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <200906050039.40050.jkrzyszt@tis.icnet.pl> Sender: linux-omap-owner@vger.kernel.org To: Janusz Krzysztofik Cc: linux-input@vger.kernel.org, linux-omap@vger.kernel.org List-Id: linux-input@vger.kernel.org Hi Janusz, On Fri, Jun 05, 2009 at 12:39:39AM +0200, Janusz Krzysztofik wrote: > This patch adds support for exporting status of GPIO switches, configured as > gpio-keys buttons that generate events of type EV_SW, over standard gpiolib > sysfs interface. That way, switch state can be easily accessed from userspace > via a modern sysfs API in addition to traditional ioclt API, without the need > for adding a new, usualy controversial entry to sysfs interface. > But this would make your application only work with devices using gpio-keys driver and nothing else. I don't think it's a good idea. Thanks. -- Dmitry