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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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




[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux