Re: [PATCH] input: enable / disable methods with sysfs entry

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

 



Joonyoung Shim <jy0922.shim@xxxxxxxxxxx> writes:

> On 12/3/2009 8:08 PM, Mark Brown wrote:
>
>> On Thu, Dec 03, 2009 at 12:58:19PM +0200, Samu Onkalo wrote:
>>
>>> Add optional enable and disable methods to input system.
>>> Add sysfs entry for enabling and disabling input device.
>>>
>>> When registering a device to input system, device can provide
>>> optional enable and disable methods. State is set to enabled by default.
>>> Opening / closing the input device doesn't change the state.
>>> If the callback functions are not provided, sysfs entry returns
>>> ENOSYS error code.
>> 
>> I'm wondering if it might be nice to provide a default implementation
>> which causes the input core to ignore the events generated by the device
>> if the driver doesn't support being enabled or disabled?  Obviously this
>> wouldn't be of any benefit in preventing resume or providing power
>> saving but it would give userspace the same effect which might be useful
>> to it for UI purposes.
>
> I think a default implementation of the input core for this is useful 
> ex. at gpio-keys driver.

Mika Westerberg is proposing an actual device specific implementation
for gpio-keys right now.  The implementation details are not decided
yet, but unifying the interface would be preferable, so Cc-ing him.
Do you work at different departments? :)
-- 
Regards,
Feri.
--
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