devicetree-compiler.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] checks: clean up string parsing
@ 2021-05-04  3:59 Ilya Lipnitskiy
       [not found] ` <20210504035944.8453-1-ilya.lipnitskiy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Ilya Lipnitskiy @ 2021-05-04  3:59 UTC (permalink / raw)
  To: devicetree-compiler-u79uwXL29TY76Z2rM5mHXA, David Gibson,
	Jon Loeliger, Rob Herring
  Cc: Ilya Lipnitskiy

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

-- 
2.31.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-05-04  4:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-04  3:59 [PATCH 0/4] checks: clean up string parsing Ilya Lipnitskiy
     [not found] ` <20210504035944.8453-1-ilya.lipnitskiy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2021-05-04  3:59   ` [PATCH 1/4] checks: tigthen up nr-gpios prop exception Ilya Lipnitskiy
2021-05-04  3:59   ` [PATCH 2/4] dtc.h: add strends for suffix matching Ilya Lipnitskiy
2021-05-04  3:59   ` [PATCH 3/4] checks: replace strstr and strrchr with strends Ilya Lipnitskiy
2021-05-04  3:59   ` [PATCH 4/4] tests: add a positive gpio test case Ilya Lipnitskiy
2021-05-04  4:53   ` [PATCH 0/4] checks: clean up string parsing David Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).