tools: Add by-name support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | tools: Clean up scandir memory allocationstools/ | +6 | 1 reply | |
| 2/7 | tools: Add line name to offset lookup helpertools/ tools/ | +24 | 0 replies | |
| 3/7 | tools: Add value support to line name lookuptools/ tools/ | +52 | 1 reply | |
| 4/7 | tools: gpioget: Add by-name supporttools/ | +41 | 1 reply | |
| 5/7 | tools: gpioset: Add by-name supporttools/ | +48 | 1 reply | |
| 6/7 | gpio-tools-test: Add gpioset --by-name teststools/ | +111 | 0 replies | |
| 7/7 | gpio-tools-test: Add gpioget --by-name teststools/ | +73 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [libgpiod PATCH 0/7] tools: Add by-name support
This series introduces a command-line flag "--by-name" that means "line-specifier arguments should be interpreted as names.
The patches implement the change for gpioset and gpioget tools. Once we have settled on an implementation for those tools it could be extended to other tools, such as gpiomon.
The test suite has been updated to cover the new option.
An initial discussion of the idea was presented here:
http://lore.kernel.org/all/[email protected]
Joel Stanley (7):
tools: Clean up scandir memory allocations
tools: Add line name to offset lookup helper
tools: Add value support to line name lookup
tools: gpioget: Add by-name support
tools: gpioset: Add by-name support
gpio-tools-test: Add gpioset --by-name tests
gpio-tools-test: Add gpioget --by-name tests
tools/gpio-tools-test.bats | 184 +++++++++++++++++++++++++++++++++++++ tools/gpioget.c | 57 ++++++++---- tools/gpioset.c | 68 ++++++++++---- tools/tools-common.c | 76 ++++++++++++++- tools/tools-common.h | 4 + 5 files changed, 352 insertions(+), 37 deletions(-)
Signature · 1 line
2.34.1