From patchwork Tue Jan 10 20:12:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 9508481 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 09E82606E1 for ; Tue, 10 Jan 2017 20:13:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF7C728423 for ; Tue, 10 Jan 2017 20:13:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E42C328573; Tue, 10 Jan 2017 20:13:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A517228423 for ; Tue, 10 Jan 2017 20:13:55 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cR2nr-0002HL-Af; Tue, 10 Jan 2017 20:13:55 +0000 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cR2nU-0001ZY-86 for linux-arm-kernel@lists.infradead.org; Tue, 10 Jan 2017 20:13:33 +0000 Received: by mail-pf0-x241.google.com with SMTP id b22so13949479pfd.3 for ; Tue, 10 Jan 2017 12:13:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UG/Mi0F6MfJ8TU0Vbf6kvdpGdUbqJoQEnFUD5HjV38E=; b=R9qC9+l1J7fW+eDr5M89Fr70kKsEz0SrryTtMKJB/V0KwN8SfNcP5CKTkw0OZNiHIJ Wy5zNU+OrKXgDUXvb7GfRpZgjop43ChH/4Ux8CDXTLlkU4gRl54BxFECAoc3sJdlgg8x HiELN7KqVYjrOcOcQo9crdJ7puByCN7ouUgENlt/365i2zSCptwPl1Kg/WQuJ/MzJDzn CTN353F0VnKoHg5mdsC7byyDGDRygLeOP4CrkkOxQ0Jfz5rwwMccfGhtRwTVjEH9tur5 6xMVXXd8yN3JF3tnPk1918XHjKo01JXjUZu5VL4aP8OgjoNDkQwKKGJuwfbyKRbuY9Fb fBnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UG/Mi0F6MfJ8TU0Vbf6kvdpGdUbqJoQEnFUD5HjV38E=; b=AGZkFqxLvtwgzqPp6/g2EqW+nSKI5LIVfGey0ujZp/YVNuM6dWhNx70d0hdg9yEmEk UthWVmigLgG9D0oh9wTbbyZEuM+aL4KOb1CsmicVIhR1Wn90Imqt3tb02dzENHfSk17q noDRhmRPioWlcf25wNYXy3obDvSDxRW90B8hbcVVPPLPPIVKxTc0RqxkHQ8ic2CEM5AR 5pgWpIcyJKqmYvXHDu/qribErGM7iRXabfYtqN/y1PcuYGeuaefA/n7u1h4DP6EFX9aD IYAEYWvF8QWW01G12o7nTasYaKis8ZgS1cE19qGYi7PWwk3HJZCDvAw6FsnWMpYr7m21 XBMw== X-Gm-Message-State: AIkVDXJMI2iPhp9KSEtLQKD/vWTz+mxtav0fHpW2NqJ90SPAnoKanju9LE8BL1Zo/Jna9A== X-Received: by 10.99.53.195 with SMTP id c186mr6197715pga.24.1484079192936; Tue, 10 Jan 2017 12:13:12 -0800 (PST) Received: from fainelli-desktop.broadcom.com ([192.19.255.250]) by smtp.gmail.com with ESMTPSA id e127sm7741037pfh.89.2017.01.10.12.13.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Jan 2017 12:13:12 -0800 (PST) From: Florian Fainelli To: netdev@vger.kernel.org Subject: [PATCH net-next 3/8] net: dsa: Suffix function manipulating device_node with _dn Date: Tue, 10 Jan 2017 12:12:30 -0800 Message-Id: <20170110201235.21771-4-f.fainelli@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170110201235.21771-1-f.fainelli@gmail.com> References: <20170110201235.21771-1-f.fainelli@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170110_121332_311418_44629FAE X-CRM114-Status: GOOD ( 11.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Lunn , Florian Fainelli , Ingo Tuchscherer , Jason Cooper , Vivien Didelot , Greg Kroah-Hartman , open list , Russell King , Stuart Yoder , Martin Schwidefsky , Gregory Clement , Philippe Reynes , "David S. Miller" , "moderated list:ARM/Marvell Dove/MV78xx0/Orion SOC support" , Sebastian Hesselbarth MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Make it clear that these functions take a device_node structure pointer Signed-off-by: Florian Fainelli --- net/dsa/dsa2.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/net/dsa/dsa2.c b/net/dsa/dsa2.c index 91141ac6ec18..9089b3b1d7f5 100644 --- a/net/dsa/dsa2.c +++ b/net/dsa/dsa2.c @@ -112,8 +112,8 @@ static bool dsa_port_is_cpu(struct dsa_port *port) return false; } -static bool dsa_ds_find_port(struct dsa_switch *ds, - struct device_node *port) +static bool dsa_ds_find_port_dn(struct dsa_switch *ds, + struct device_node *port) { u32 index; @@ -123,8 +123,8 @@ static bool dsa_ds_find_port(struct dsa_switch *ds, return false; } -static struct dsa_switch *dsa_dst_find_port(struct dsa_switch_tree *dst, - struct device_node *port) +static struct dsa_switch *dsa_dst_find_port_dn(struct dsa_switch_tree *dst, + struct device_node *port) { struct dsa_switch *ds; u32 index; @@ -134,7 +134,7 @@ static struct dsa_switch *dsa_dst_find_port(struct dsa_switch_tree *dst, if (!ds) continue; - if (dsa_ds_find_port(ds, port)) + if (dsa_ds_find_port_dn(ds, port)) return ds; } @@ -155,7 +155,7 @@ static int dsa_port_complete(struct dsa_switch_tree *dst, if (!link) break; - dst_ds = dsa_dst_find_port(dst, link); + dst_ds = dsa_dst_find_port_dn(dst, link); of_node_put(link); if (!dst_ds) @@ -559,7 +559,7 @@ static int dsa_parse_ports_dn(struct device_node *ports, struct dsa_switch *ds) return 0; } -static int dsa_parse_member(struct device_node *np, u32 *tree, u32 *index) +static int dsa_parse_member_dn(struct device_node *np, u32 *tree, u32 *index) { int err; @@ -605,7 +605,7 @@ static int _dsa_register_switch(struct dsa_switch *ds, struct device *dev) u32 tree, index; int i, err; - err = dsa_parse_member(np, &tree, &index); + err = dsa_parse_member_dn(np, &tree, &index); if (err) return err;