OSDN Git Service

net: dsa: mv88e6xxx: link mv88e6xxx_port to mv88e6xxx_chip
authorAndrew Lunn <andrew@lunn.ch>
Thu, 9 Aug 2018 13:38:47 +0000 (15:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Aug 2018 18:08:20 +0000 (11:08 -0700)
commit7b898469b91ea08e42dbed52acf8dfcb4f5914d0
tree7196fbe226f6f79dd8448d1bebc62e2541808b77
parent364e9d7776a389941cea6c40783f90c236b402ce
net: dsa: mv88e6xxx: link mv88e6xxx_port to mv88e6xxx_chip

An up coming change will register interrupts for individual switch
ports, using the mv88e6xxx_port as the interrupt context information.
Add members to the mv88e6xxx_port structure so we can link it back to
the mv88e6xxx_chip member the port belongs to and the port number of
the port.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/chip.h