Commit fad556bf authored by Frank Rowand's avatar Frank Rowand Committed by Rob Herring

of: Remove prefix "__of_" from local function names

Remove "__of_" prefix from local function names.  The pattern of
a leading "__" is used in drivers/of/ to signify a function that
must be called with a lock held.  These functions do not fit
that pattern.
Signed-off-by: default avatarFrank Rowand <frank.rowand@am.sony.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent f94823f2
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
* Find a node with the give full name by recursively following any of * Find a node with the give full name by recursively following any of
* the child node links. * the child node links.
*/ */
static struct device_node *__of_find_node_by_full_name(struct device_node *node, static struct device_node *find_node_by_full_name(struct device_node *node,
const char *full_name) const char *full_name)
{ {
struct device_node *child, *found; struct device_node *child, *found;
...@@ -40,7 +40,7 @@ static struct device_node *__of_find_node_by_full_name(struct device_node *node, ...@@ -40,7 +40,7 @@ static struct device_node *__of_find_node_by_full_name(struct device_node *node,
return of_node_get(node); return of_node_get(node);
for_each_child_of_node(node, child) { for_each_child_of_node(node, child) {
found = __of_find_node_by_full_name(child, full_name); found = find_node_by_full_name(child, full_name);
if (found != NULL) { if (found != NULL) {
of_node_put(child); of_node_put(child);
return found; return found;
...@@ -143,7 +143,7 @@ static int update_usages_of_a_phandle_reference(struct device_node *node, ...@@ -143,7 +143,7 @@ static int update_usages_of_a_phandle_reference(struct device_node *node,
if (err) if (err)
goto err_fail; goto err_fail;
refnode = __of_find_node_by_full_name(node, nodestr); refnode = find_node_by_full_name(node, nodestr);
if (!refnode) if (!refnode)
continue; continue;
...@@ -168,7 +168,7 @@ static int update_usages_of_a_phandle_reference(struct device_node *node, ...@@ -168,7 +168,7 @@ static int update_usages_of_a_phandle_reference(struct device_node *node,
} }
/* compare nodes taking into account that 'name' strips out the @ part */ /* compare nodes taking into account that 'name' strips out the @ part */
static int __of_node_name_cmp(const struct device_node *dn1, static int node_name_cmp(const struct device_node *dn1,
const struct device_node *dn2) const struct device_node *dn2)
{ {
const char *n1 = strrchr(dn1->full_name, '/') ? : "/"; const char *n1 = strrchr(dn1->full_name, '/') ? : "/";
...@@ -232,7 +232,7 @@ static int adjust_local_phandle_references(struct device_node *node, ...@@ -232,7 +232,7 @@ static int adjust_local_phandle_references(struct device_node *node,
for_each_child_of_node(node, child) { for_each_child_of_node(node, child) {
for_each_child_of_node(target, childtarget) for_each_child_of_node(target, childtarget)
if (!__of_node_name_cmp(child, childtarget)) if (!node_name_cmp(child, childtarget))
break; break;
if (!childtarget) if (!childtarget)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment