[PATCH] powerpc: add of_find_next_property and of_get_aliased_index
Segher Boessenkool
segher at kernel.crashing.org
Thu Jun 26 06:22:52 EST 2008
> 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
More information about the Linuxppc-dev
mailing list