]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Move port device node into port structure
authorAndrew Lunn <andrew@lunn.ch>
Sat, 4 Jun 2016 19:16:58 +0000 (21:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Jun 2016 21:29:53 +0000 (14:29 -0700)
commit46b0ef9683bb115272667e7e8dd981da54515c23
tree38e7f6d3ba4a9916314afc85456d2b3050655269
parenta6db18f12b8c900d1cc1ac2c87dcfac48d011897
net: dsa: Move port device node into port structure

Move the port device node structure into the port structure, from the
chip data. This information is needed in the next step of implementing
the new binding.

The chip data structure is used while parsing the whole old binding,
before the individual switch structures exist. With the new bindings,
this is reversed, the switches exist first, and the interconnections
between the switches is derived from the individual switch
bindings. Thus this chip data structure becomes unneeded.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
eviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dsa.h
net/dsa/dsa.c
net/dsa/slave.c