[PATCH] dt: add of_alias_scan and of_alias_get_id

David Miller davem at davemloft.net
Thu Sep 22 06:55:29 EST 2011


From: Grant Likely <grant.likely at secretlab.ca>
Date: Wed, 21 Sep 2011 14:46:54 -0600

> From: Shawn Guo <shawn.guo at linaro.org>
> 
> The patch adds function of_alias_scan to populate a global lookup
> table with the properties of 'aliases' node and function
> of_alias_get_id for drivers to find alias id from the lookup table.
> 
> v3: Split out automatic addition of aliases on id lookup so that it can be
>     debated separately from the core functionality.
> v2: - Add of_chosen/of_aliases populating and of_alias_scan() invocation
>     for OF_PROMTREE.
>     - Add locking
>     - rework parse loop
> 
> Signed-off-by: Shawn Guo <shawn.guo at linaro.org>
> Cc: David S. Miller <davem at davemloft.net>
> Signed-off-by: Grant Likely <grant.likely at secretlab.ca>

Looks good:

Acked-by: David S. Miller <davem at davemloft.net>


More information about the devicetree-discuss mailing list