aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of/testcase-data
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@linaro.org>2014-03-14 13:53:10 +0000
committerGrant Likely <grant.likely@linaro.org>2014-05-23 11:35:30 +0900
commitae91ff72e9132abe47f726424d9420fce004ca04 (patch)
tree930bda8116afaf11520fe7a9b18a25fc84ce5843 /drivers/of/testcase-data
parentof: Make of_find_node_by_path() handle /aliases (diff)
downloadlinux-dev-ae91ff72e9132abe47f726424d9420fce004ca04.tar.xz
linux-dev-ae91ff72e9132abe47f726424d9420fce004ca04.zip
of: Add a testcase for of_find_node_by_path()
Add a testcase for the find_node_by_path() function to make sure it handles all the valid scenarios. Signed-off-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'drivers/of/testcase-data')
-rw-r--r--drivers/of/testcase-data/tests-phandle.dtsi6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/of/testcase-data/tests-phandle.dtsi b/drivers/of/testcase-data/tests-phandle.dtsi
index 788a4c24b8f5..ce0fe083d406 100644
--- a/drivers/of/testcase-data/tests-phandle.dtsi
+++ b/drivers/of/testcase-data/tests-phandle.dtsi
@@ -1,6 +1,10 @@
/ {
- testcase-data {
+ aliases {
+ testcase-alias = &testcase;
+ };
+
+ testcase: testcase-data {
security-password = "password";
duplicate-name = "duplicate";
duplicate-name { };