Use GPIO directory based on actual device tree path#7
Open
VipSaran wants to merge 3 commits intoromilly:masterfrom
Open
Use GPIO directory based on actual device tree path#7VipSaran wants to merge 3 commits intoromilly:masterfrom
VipSaran wants to merge 3 commits intoromilly:masterfrom
Conversation
|
I believe this is unnecessary as #6 already contains the fix for this problem. |
|
+1 |
1 similar comment
|
+1 |
Author
|
updated the fix |
|
@lurch, that fix is worse because it only uses one path, this one checks both. |
This was referenced Oct 19, 2015
|
Nope, #6 is the better fix, as the same path works on all versions of Raspberry Pi, and is in fact the "correct" path to use. |
ghost
approved these changes
Dec 1, 2017
ghost
approved these changes
Dec 1, 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
By testing the device tree directory we can detrermine whether to use the "old"
/sys/devices/virtual/gpio/gpio%u/%spath or to use the one used after update to kernel 3.18.x:/sys/class/gpio/gpio%u/%s, so both configurations are supported.