How to choeck for a gpio-keys based switch state?

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

 



Hi,

Greetings from new list member.

I am trying to create a gpio-keys based platform device driver for a hook switch. I am wondering if there is a possibility to check for the switch state before the first event comes up. I think this feature could be essential for correct user experience - an application should know the switch state from the start. As I am not able to find such functionality in the current gpio-keys driver, I wonder if this could be done over gpiolib sysfs interface by adding optional gpio_export() call to the driver init function. I can try to provide a patch if this sounds reasonable to you.

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