net: dsa: mv88e6xxx: abstract VTU/STU data access
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Tue, 10 May 2016 19:44:28 +0000 (15:44 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 May 2016 23:34:23 +0000 (19:34 -0400)
commit15d7d7d435cfe1faa1abf62459d6269bb734cfe7
tree1b85e16c71241eddbb0caff60d623f137a382c4d
parentc3f1010b30f7fc611139cfb702a8685741aa6827
net: dsa: mv88e6xxx: abstract VTU/STU data access

Both VTU and STU operations use the same routine to access their
(common) data registers, with a different offset.

Add VTU and STU specific read and write functions to the data registers
to abstract the required offset.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx.c