netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] net: dsa: remove unnecessary arguments
@ 2017-08-04 22:23 Vivien Didelot
  2017-08-04 22:23 ` [PATCH net-next 1/3] net: dsa: assign switch device in legacy code Vivien Didelot
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Vivien Didelot @ 2017-08-04 22:23 UTC (permalink / raw)
  To: netdev
  Cc: linux-kernel, kernel, David S. Miller, Florian Fainelli,
	Andrew Lunn, Vivien Didelot

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

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

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

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-04 22:23 [PATCH net-next 0/3] net: dsa: remove unnecessary arguments Vivien Didelot
2017-08-04 22:23 ` [PATCH net-next 1/3] net: dsa: assign switch device in legacy code Vivien Didelot
2017-08-05  0:55   ` Andrew Lunn
2017-08-05 20:09     ` Vivien Didelot
2017-08-04 22:23 ` [PATCH net-next 2/3] net: dsa: remove useless args of dsa_cpu_dsa_setup Vivien Didelot
2017-08-04 22:23 ` [PATCH net-next 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).