From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Loeliger Subject: Re: [PATCH 0/3] Add a couple of string-related functions Date: Wed, 15 Jul 2015 08:29:31 -0500 Message-ID: References: <1436958839-14793-1-git-send-email-thierry.reding@gmail.com> Return-path: In-reply-to: <1436958839-14793-1-git-send-email-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Sender: devicetree-compiler-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Thierry Reding Cc: David Gibson , devicetree-compiler-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Simon Glass , Masahiro Yamada So, like, Thierry Reding said: > From: Thierry Reding > > These three patches add a couple of string functions that have proven > useful in U-Boot's copy of libfdt, so they are likely to be useful for > other users as well. > > Patch 1 adds a function to count the number of strings in a property's > value. This also adds a new DTS sample along with a small test program > to validate the implemented functions. > > Patch 2 adds a function to retrieve the index of a given string in any > given property's value. This adds code to the test program introduced in > the previous patch to exercise the new functionality. > > Patch 3 adds a function to retrieve a string by index from a property's > value along with a shortcut for index 0. This extends the test program > introduced in patch 1 to validate the new functionality. > > Thierry Hi Thierry, While I am generally fine with this patch set, I have a large-scope question. Is there a larger plan to consolidate or unify the U-Boot and DTC libfdts? Thanks, jdl