Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752748AbdHDW00 (ORCPT ); Fri, 4 Aug 2017 18:26:26 -0400 Received: from mail.savoirfairelinux.com ([208.88.110.44]:42006 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752600AbdHDW0Y (ORCPT ); Fri, 4 Aug 2017 18:26:24 -0400 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 0/3] net: dsa: remove unnecessary arguments Date: Fri, 4 Aug 2017 18:23:17 -0400 Message-Id: <20170804222320.10986-1-vivien.didelot@savoirfairelinux.com> X-Mailer: git-send-email 2.13.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 690 Lines: 19 Several DSA core functions take many arguments, mostly because the legacy code does not assign ds->dev. This patch series assigns ds->dev in legacy and removes the unnecessary arguments of these functions, where either the dsa_switch or dsa_port argument is enough. Vivien Didelot (3): net: dsa: assign switch device in legacy code net: dsa: remove useless args of dsa_cpu_dsa_setup net: dsa: remove useless args of dsa_slave_create net/dsa/dsa.c | 10 +++++----- net/dsa/dsa2.c | 6 +++--- net/dsa/dsa_priv.h | 6 ++---- net/dsa/legacy.c | 19 +++++++++---------- net/dsa/slave.c | 14 +++++++------- 5 files changed, 26 insertions(+), 29 deletions(-) -- 2.13.3