linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v3 0/3] net: dsa: remove useless arguments
@ 2017-08-07 16:17 Vivien Didelot
  2017-08-07 16:17 ` [PATCH net-next v3 1/3] net: dsa: remove useless argument in legacy setup Vivien Didelot
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Vivien Didelot @ 2017-08-07 16:17 UTC (permalink / raw)
  To: netdev
  Cc: linux-kernel, kernel, David S. Miller, Florian Fainelli,
	Andrew Lunn, Vivien Didelot

Several DSA core setup functions take many arguments, mostly because of
the legacy code. This patch series removes the useless args of these
functions, where either the dsa_switch or dsa_port argument is enough.

Changes in v3:
  - rebased on top of conflicting 5f6b4e14cada ("net: dsa: User per-cpu
    64-bit statistics")
  - added Florian's tags

Changes in v2:
  - ds->dev is already assigned by dsa_switch_alloc

Vivien Didelot (3):
  net: dsa: remove useless argument in legacy setup
  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   | 18 ++++++++----------
 net/dsa/slave.c    | 14 +++++++-------
 5 files changed, 25 insertions(+), 29 deletions(-)

-- 
2.14.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-08-07 16:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-07 16:17 [PATCH net-next v3 0/3] net: dsa: remove useless arguments Vivien Didelot
2017-08-07 16:17 ` [PATCH net-next v3 1/3] net: dsa: remove useless argument in legacy setup Vivien Didelot
2017-08-07 16:17 ` [PATCH net-next v3 2/3] net: dsa: remove useless args of dsa_cpu_dsa_setup Vivien Didelot
2017-08-07 16:17 ` [PATCH net-next v3 3/3] net: dsa: remove useless args of dsa_slave_create Vivien Didelot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).