]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: dsa: Make most functions take a dsa_port argument
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 26 Jan 2017 18:45:52 +0000 (10:45 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Jan 2017 20:43:53 +0000 (15:43 -0500)
commit293784a8f856e854b4742be4aacf435062d91e9c
tree1fa42ba1ef912b78e184e5bbddc046ae8d0df2e8
parent55ed0ce0898e15fec30d2ca2a563d7934b082375
net: dsa: Make most functions take a dsa_port argument

In preparation for allowing platform data, and therefore no valid
device_node pointer, make most DSA functions takes a pointer to a
dsa_port structure whenever possible. While at it, introduce a
dsa_port_is_valid() helper function which checks whether port->dn is
NULL or not at the moment.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa.c
net/dsa/dsa2.c
net/dsa/dsa_priv.h