LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   what's the difference bewteen using /sys/class/gpio and gpio_key driver (https://www.linuxquestions.org/questions/linux-newbie-8/whats-the-difference-bewteen-using-sys-class-gpio-and-gpio_key-driver-4175474317/)

henryyao 08-22-2013 03:27 PM

what's the difference bewteen using /sys/class/gpio and gpio_key driver
 
I'm wondering why do we need the gpio_key driver when everything about gpio can be done by accessing /sys/class/gpio?

smallpond 08-23-2013 08:23 AM

The driver calls won't change but /sys/class is not guaranteed to stay the same for different kernel revs.

henryyao 08-23-2013 08:27 AM

Quote:

Originally Posted by smallpond (Post 5014470)
The driver calls won't change but /sys/class is not guaranteed to stay the same for different kernel revs.

That make sense, thanks.


All times are GMT -5. The time now is 10:50 PM.