net: dsa: mv88e6xxx: Abstract stats_snapshot into ops structure
authorAndrew Lunn <andrew@lunn.ch>
Mon, 21 Nov 2016 22:26:58 +0000 (23:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Nov 2016 14:55:30 +0000 (09:55 -0500)
commita605a0fe7115ead62f9a2e93819e21776261efec
treea711d4b3434153c6daa4252cb5df18b556323342
parent1a3b39ecfe32bf9a13df44b4fadf91d4e4d3d5ff
net: dsa: mv88e6xxx: Abstract stats_snapshot into ops structure

Taking a stats snapshot differs between same families. Abstract this
into an ops member. At the same time, move the code into global1.[ch],
since the registers are in the global1 range.

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/global1.c
drivers/net/dsa/mv88e6xxx/global1.h
drivers/net/dsa/mv88e6xxx/mv88e6xxx.h