Received: by 10.223.164.202 with SMTP id h10csp718414wrb; Mon, 6 Nov 2017 14:19:27 -0800 (PST) X-Google-Smtp-Source: ABhQp+RGzx1t0e2ygNAbPXVBM8ahr2N4mlmIbXD0FG32zKDFSD1sbh8x2lVePOtjXJuI3OISpQLf X-Received: by 10.159.194.196 with SMTP id u4mr16130883plz.49.1510006767113; Mon, 06 Nov 2017 14:19:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510006767; cv=none; d=google.com; s=arc-20160816; b=CXtw8LBflpjKpiinXOIeUpJvk7qXvIJznBrdu7s2F48Z0NP/KmVvQdIoAJHVfJW0U8 JvGs6iJgbvbGffdI4OTml89Yy6WFTTT8vpt6580Lf3tXqiVlJwUN+gHaqzEovVfxhXJ1 uzwtBg6v81YM86ll7iNF2yYIucQ93Nm7ZvS7S9N48cMSXPPFB1523+Bph7a3EfwP3qi/ /iySQdDADLMHu4i73f/NFLMW/TxE2Bj1flOLcLjMaPFDSMAkEGfa7mmfEXx6NECGWe5x ZSde9OtUkB4MgikRRtcKa0HZlPFtOV+0XKVwl+UezBUcLBuHi0PgIjBegNx8lU5k9b/h KC3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=R2ZO4qBdGlz2O+lWQxpEN7yiUnvxeH4lWJ90leMSh1A=; b=EwMyKoTLgJ9OeCLlfpWzRFlCgmX1zgbEO8htHKTb2+LZE5qhOjOoW25biajbDq6+rN hrAxVY8SZsxZodboHqqZRQ0ClXBwYSFrzDwiFUcSFS9tdFLMawQ0lgclxZU7zVT2TH5U Fik36X2t9vYTket3PASg7oRT0rxcm/6cYgMrH6go8VlTclBFVqgIhSPikif5NkRvQzus KRKKuEH4OLfegUH+3g7jPGd8KjJpO+8472ykfvl1aigFgAPyie9uSBr+WrXPY6MlqIE8 vI8NSJxxHzGHUKHyMeebO971xdmu/Sht7aAPqA8T/5JCLmklaxwdEwRbzNTdg1uub8Pi 664w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 61si10786352plz.184.2017.11.06.14.19.13; Mon, 06 Nov 2017 14:19:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752370AbdKFVNf (ORCPT + 95 others); Mon, 6 Nov 2017 16:13:35 -0500 Received: from mail.savoirfairelinux.com ([208.88.110.44]:55176 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753685AbdKFVMT (ORCPT ); Mon, 6 Nov 2017 16:12:19 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id 693449C1A91; Mon, 6 Nov 2017 16:12:18 -0500 (EST) Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id GUOYse_6O1qb; Mon, 6 Nov 2017 16:12:18 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.savoirfairelinux.com (Postfix) with ESMTP id A00689C2E5D; Mon, 6 Nov 2017 16:12:16 -0500 (EST) X-Virus-Scanned: amavisd-new at mail.savoirfairelinux.com Received: from mail.savoirfairelinux.com ([127.0.0.1]) by localhost (mail.savoirfairelinux.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id xvgewu0t04s5; Mon, 6 Nov 2017 16:12:16 -0500 (EST) Received: from weeman.mtl.sfl (unknown [192.168.49.104]) by mail.savoirfairelinux.com (Postfix) with ESMTPSA id 4B86F9C2F34; Mon, 6 Nov 2017 16:12:16 -0500 (EST) From: Vivien Didelot To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com, "David S. Miller" , Florian Fainelli , Andrew Lunn , Vivien Didelot Subject: [PATCH net-next 11/11] net: dsa: rename probe and remove switch functions Date: Mon, 6 Nov 2017 16:11:53 -0500 Message-Id: <20171106211153.26529-12-vivien.didelot@savoirfairelinux.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20171106211153.26529-1-vivien.didelot@savoirfairelinux.com> References: <20171106211153.26529-1-vivien.didelot@savoirfairelinux.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit brings no functional changes. It gets rid of the underscore prefixed _dsa_register_switch and _dsa_unregister_switch functions in favor of dsa_switch_probe() which parses and adds a switch to a tree and dsa_switch_remove() which removes a switch from a tree. Signed-off-by: Vivien Didelot --- net/dsa/dsa2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/dsa/dsa2.c b/net/dsa/dsa2.c index 3db50e68640e..fd54a8e17986 100644 --- a/net/dsa/dsa2.c +++ b/net/dsa/dsa2.c @@ -718,7 +718,7 @@ static int dsa_switch_add(struct dsa_switch *ds) return dsa_tree_add_switch(dst, ds); } -static int _dsa_register_switch(struct dsa_switch *ds) +static int dsa_switch_probe(struct dsa_switch *ds) { struct dsa_chip_data *pdata = ds->dev->platform_data; struct device_node *np = ds->dev->of_node; @@ -764,14 +764,14 @@ int dsa_register_switch(struct dsa_switch *ds) int err; mutex_lock(&dsa2_mutex); - err = _dsa_register_switch(ds); + err = dsa_switch_probe(ds); mutex_unlock(&dsa2_mutex); return err; } EXPORT_SYMBOL_GPL(dsa_register_switch); -static void _dsa_unregister_switch(struct dsa_switch *ds) +static void dsa_switch_remove(struct dsa_switch *ds) { struct dsa_switch_tree *dst = ds->dst; unsigned int index = ds->index; @@ -782,7 +782,7 @@ static void _dsa_unregister_switch(struct dsa_switch *ds) void dsa_unregister_switch(struct dsa_switch *ds) { mutex_lock(&dsa2_mutex); - _dsa_unregister_switch(ds); + dsa_switch_remove(ds); mutex_unlock(&dsa2_mutex); } EXPORT_SYMBOL_GPL(dsa_unregister_switch); -- 2.14.3 From 1583408580124870821@xxx Tue Nov 07 12:01:35 +0000 2017 X-GM-THRID: 1583322896357804274 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread