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

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



On Mon, May 03, 2021 at 08:59:40PM -0700, Ilya Lipnitskiy wrote:
> 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.

Applied, thanks.

> 
> [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
> 

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

Attachment: signature.asc
Description: PGP signature


[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