From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Wed, 27 Aug 2014 12:53:16 -0600 Subject: [U-Boot] [PATCH v2 04/40] fdt: Add functions to retrieve strings In-Reply-To: <1409067268-956-5-git-send-email-thierry.reding@gmail.com> References: <1409067268-956-1-git-send-email-thierry.reding@gmail.com> <1409067268-956-5-git-send-email-thierry.reding@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Thierry, On 26 August 2014 09:33, Thierry Reding wrote: > From: Thierry Reding > > Given a device tree node, a property name and an index, the new function > fdt_get_string_index() will return in an output argument a pointer to > the index'th string in the property's value. > > The fdt_get_string() is a shortcut for the above with the index being 0. > > Signed-off-by: Thierry Reding Acked-by: Simon Glass Could be fdt_stringlist_lookup() maybe. But there's no point guessing until you send this upstream. Regards, Simon