Subject: Re: [PATCH] powerpc: add of_find_next_property and of_get_aliased_index

From: Segher Boessenkool <[email-masked]>
Date: Wed, 25 Jun 2008 22:22:52 +0200

> of_get_aliased_node() looks up the aliases in the "/aliases" node and 
> returns
> the index of the property that points to a given node.  That is, if 
> you have
> an alias "serial2" that points to a serial port node, 
> of_get_aliased_index()
> returns "2".

It returns 2 for both "i2c-1" and "i2c-2".

Also, alias names do not have any significance in general, they are
just handy shortcut names for humans to use; it would be better not
to overload this.  What do you want to use this for?

Segher