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
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev