Re: [RFC] [PATCH] input: export gpio-keys driven switch status over gpiolib sysfs

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

 



Hi Dmitry,

Thursday 11 June 2009 08:18:56 Dmitry Torokhov napisał(a):
> 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.

No, my patch wouldn't make that, neither to mine nor any other application. 
It's an application developer, not my patch, who can make the application 
limited, and I think he should be free to do this at his will. My patch would 
only provide him with extra functionality, exposed by one of device drivers, 
designed for a specific group of devices, for his free use.

I think that providing extra functionality for free use, without breaking 
anything, neither in kernel nor user space, not adding any overhead, moreover, 
using an already existing kernel API designed for that specific purpose, is a 
good idea.

Thanks,
Janusz
--
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