From: David Gibson Date: Sat, 4 Oct 2008 14:49:04 +1000 Subject: [U-Boot] [PATCH] libfdt: Add function to explicitly expand aliases In-Reply-To: <48E67BE2.1060707@freescale.com> References: <20081002230553.GA25309@cideas.com> <20081003200010.GD7476@colossus> <48E67BE2.1060707@freescale.com> Message-ID: <20081004044904.GK30184@yookeroo.seuss> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Oct 03, 2008 at 03:09:06PM -0500, Jon Loeliger wrote: > Petri Lehtinen wrote: >> 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? > > It does look that way.... > > This patch has already been applied upstream, > so correcting patches on top of this are welcome. libfdt: Fix error in documentation for fdt_get_alias_namelen() Oops, screwed up the function name in the documenting comment for this function. Trivial correction in this patch. Signed-off-by: David Gibson Index: dtc/libfdt/libfdt.h =================================================================== --- dtc.orig/libfdt/libfdt.h 2008-10-04 14:46:50.000000000 +1000 +++ dtc/libfdt/libfdt.h 2008-10-04 14:46:56.000000000 +1000 @@ -459,7 +459,7 @@ static inline void *fdt_getprop_w(void * uint32_t fdt_get_phandle(const void *fdt, int nodeoffset); /** - * fdt_get_namelen - get alias based on substring + * fdt_get_alias_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 -- 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