[PATCH net-next v2 2/4] net: dsa: Make most functions take a dsa_port argument

2017-01-26 Thread Florian Fainelli
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-

Re: [PATCH net-next v2 2/4] net: dsa: Make most functions take a dsa_port argument

2016-07-05 Thread Andrew Lunn
On Tue, Jul 05, 2016 at 03:07:11PM -0700, Florian Fainelli wrote: > 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 fun

[PATCH net-next v2 2/4] net: dsa: Make most functions take a dsa_port argument

2016-07-05 Thread Florian Fainelli
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-