]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit99a80275519775c584bcfce9d097c858ffda4a8c
treea711d4b3434153c6daa4252cb5df18b556323342
parentc7e010e2ad77e886c22ad6906444321c7656c3dd
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