From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petri Lehtinen Date: Fri, 3 Oct 2008 23:00:10 +0300 Subject: [U-Boot] [PATCH] libfdt: Add function to explicitly expand aliases In-Reply-To: <20081002230553.GA25309@cideas.com> References: <20081002230553.GA25309@cideas.com> Message-ID: <20081003200010.GD7476@colossus> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Oct 02, 2008 at 07:05:53PM -0400, Jerry Van Baren wrote: [snip] > diff --git a/include/libfdt.h b/include/libfdt.h > index 5492a53..7cad68c 100644 > --- a/include/libfdt.h > +++ b/include/libfdt.h > @@ -459,6 +459,32 @@ static inline void *fdt_getprop_w(void *fdt, int nodeoffset, > uint32_t fdt_get_phandle(const void *fdt, int nodeoffset); > > /** > + * fdt_get_namelen - get alias based on substring ===^^^^^^^^^^^^^^^=== > + * @fdt: pointer to the device tree blob > + * @name: name of the alias th look up > + * @namelen: number of characters of name to consider > + * > + * Identical to fdt_get_alias(), but only examine the first namelen > + * characters of name for matching the alias name. > + */ > +const char *fdt_get_alias_namelen(const void *fdt, > + const char *name, int namelen); > + This should be fdt_get_alias_namelen, right? Petri