]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit01bd404892e3700bf0a45a9e196ed4a046e79d46
tree1b85e16c71241eddbb0caff60d623f137a382c4d
parentf58f10e0e6082f0a1639689550f316d529a75e46
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