diff options
author | Frank Rowand <frank.rowand@sony.com> | 2017-10-18 01:36:31 +0200 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2017-10-18 03:47:37 +0200 |
commit | e0a58f3e08d4b7fa8e2a4075c522f1a98c9e4cab (patch) | |
tree | 451e9c437fe1cfd801532eb356932fa39ad29ca1 /drivers/of/of_private.h | |
parent | of: overlay: simplify applying symbols from an overlay (diff) | |
download | linux-e0a58f3e08d4b7fa8e2a4075c522f1a98c9e4cab.tar.xz linux-e0a58f3e08d4b7fa8e2a4075c522f1a98c9e4cab.zip |
of: overlay: remove a dependency on device node full_name
The "%pOF" printf format was recently added to print the
full name of a device tree node, with the intent of changing
the node full_name field to contain only the node name instead
of the full path of the node.
dup_and_fixup_symbol_prop() duplicates a property from the
"/__symbols__" node of an overlay device tree. The value
of each duplicated property must be fixed up to include
the full path of a node in the live device tree. The
current code uses the node's full_name for that purpose.
Update the code to use the "%pOF" printf format to
determine the node's full path.
Signed-off-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/of_private.h')
-rw-r--r-- | drivers/of/of_private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/of/of_private.h b/drivers/of/of_private.h index 248730567dbe..92a9a3687446 100644 --- a/drivers/of/of_private.h +++ b/drivers/of/of_private.h @@ -110,6 +110,8 @@ extern void *__unflatten_device_tree(const void *blob, struct property *__of_prop_dup(const struct property *prop, gfp_t allocflags); __printf(2, 3) struct device_node *__of_node_dup(const struct device_node *np, const char *fmt, ...); +struct device_node *__of_find_node_by_path(struct device_node *parent, + const char *path); struct device_node *__of_find_node_by_full_path(struct device_node *node, const char *path); |