Skip to content

checks: clean up string parsing

Ilya Lipnitskiy devicetree-compiler 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4checks: tigthen up nr-gpios prop exceptionchecks.c+1 -10 replies
2/4dtc.h: add strends for suffix matchingdtc.h+10 -00 replies
3/4checks: replace strstr and strrchr with strendschecks.c+7 -180 replies
4/4tests: add a positive gpio test casetests/good-gpio.dts tests/run_tests.sh+14 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] checks: clean up string parsing

Add a new function, strends(), as suggested in [0]. Replace existing suffix logic with calls to strends().

Make nr-gpios exception stricter by aligning with the devicetree spec and the logic in the Linux kernel.

Add a test case to cover correct non-deprecated GPIO properties.

[0]: https://www.spinics.net/lists/devicetree-compiler/msg03634.html

Ilya Lipnitskiy (4):
checks: tigthen up nr-gpios prop exception
dtc.h: add strends for suffix matching
checks: replace strstr and strrchr with strends
tests: add a positive gpio test case

 checks.c            | 25 +++++++------------------
 dtc.h               | 10 ++++++++++
 tests/good-gpio.dts | 12 ++++++++++++
 tests/run_tests.sh  |  2 ++
 4 files changed, 31 insertions(+), 18 deletions(-)
 create mode 100644 tests/good-gpio.dts
Signature · 1 line
2.31.1