From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 7 Sep 2006 11:27:17 -0700 From: "Mark A. Greer" To: Hollis Blanchard Subject: Re: common flatdevtree code Message-ID: <20060907182717.GC4398@mag.az.mvista.com> References: <20060831184020.GA13494@mag.az.mvista.com> <17662.17895.852128.729679@cargo.ozlabs.ibm.com> <20060907003625.GA15533@mag.az.mvista.com> <1157615011.18137.14.camel@diesel> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1157615011.18137.14.camel@diesel> Cc: linuxppc-dev , Paul Mackerras List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Hollis. On Thu, Sep 07, 2006 at 02:43:31AM -0500, Hollis Blanchard wrote: > Thanks Mark! > > On Wed, 2006-09-06 at 17:36 -0700, Mark A. Greer wrote: > > void *ft_find_device(const void *bphp, const char *srch_path) > > How about "ft_find_node"? Sure. > I renamed that and made a couple other small > changes. In particular: > - u8->int OK. > - exit and free -> ft_exit and ft_free (so they can be wrapped in > flatdevtree_env.h) Makes sense. > - moved those inlines out of flatdevtree.h, since they don't need to be > exported ft_parentize is also used in flatdevtree_misc.c so I think they should stay in flatdevtree.h. > I just put up a Mercurial tree. I didn't include your flatdevtree_misc.c > since it's kernel-specific, and I added a userspace flatdevtree_env.h. > > To get the source: > hg clone http://unsanctioned.org/flatdevtree/hgweb.py flatdevtree Oh, cool. > I'd like to add some unit tests in the near future (e.g. comparing with > dtc output), but I wasted a couple hours screwing with a makefile > instead. :( > > By the way, could you send a patch adding your copyright info? Yeah, I'm still cleaning up & testing a bit. I should have them out today unless something comes up (well in addition to a scheduled hour long network outtage :( . Mark