Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966035AbcJYVAQ (ORCPT ); Tue, 25 Oct 2016 17:00:16 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34628 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759585AbcJYVAI (ORCPT ); Tue, 25 Oct 2016 17:00:08 -0400 From: frowand.list@gmail.com To: Rob Herring , pantelis.antoniou@konsulko.com, Pantelis Antoniou Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 06/13] of: Remove prefix "__of_" and prefix "__" from local function names Date: Tue, 25 Oct 2016 13:58:59 -0700 Message-Id: <1477429146-27039-7-git-send-email-frowand.list@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1477429146-27039-1-git-send-email-frowand.list@gmail.com> References: <1477429146-27039-1-git-send-email-frowand.list@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2015 Lines: 58 From: Frank Rowand Signed-off-by: Frank Rowand --- drivers/of/resolver.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/of/resolver.c b/drivers/of/resolver.c index 3d123b612789..0ce38aa0ed3c 100644 --- a/drivers/of/resolver.c +++ b/drivers/of/resolver.c @@ -28,7 +28,7 @@ * Find a node with the give full name by recursively following any of * 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) { struct device_node *child, *found; @@ -40,7 +40,7 @@ static struct device_node *__of_find_node_by_full_name(struct device_node *node, return of_node_get(node); 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) { of_node_put(child); return found; @@ -143,7 +143,7 @@ static int update_usages_of_a_phandle_reference(struct device_node *node, if (err) goto err_fail; - refnode = __of_find_node_by_full_name(node, nodestr); + refnode = find_node_by_full_name(node, nodestr); if (!refnode) continue; @@ -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 */ -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 char *n1 = strrchr(dn1->full_name, '/') ? : "/"; @@ -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(target, childtarget) - if (!__of_node_name_cmp(child, childtarget)) + if (!node_name_cmp(child, childtarget)) break; if (!childtarget) -- 1.9.1