]> git.baikalelectronics.ru Git - kernel.git/commit
dt: add of_alias_scan and of_alias_get_id
authorShawn Guo <shawn.guo@linaro.org>
Wed, 3 Aug 2011 10:28:14 +0000 (11:28 +0100)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 3 Aug 2011 12:02:31 +0000 (13:02 +0100)
commit7c32e906d376a94c307ab3693bc504e6fa9adf5b
tree6aabb1512a4000615e93b25beccba606b62f7237
parent0d09f2796d8152f78d78b7e85f1447f38c99a524
dt: add of_alias_scan and of_alias_get_id

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.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
[grant.likely: add locking and rework parse loop]
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/of/base.c
drivers/of/fdt.c
include/linux/of.h
include/linux/of_fdt.h