dsa: mv88x6xxx: Refactor getting a single statistic
authorAndrew Lunn <andrew@lunn.ch>
Sat, 20 Jun 2015 16:42:30 +0000 (18:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jun 2015 13:33:40 +0000 (06:33 -0700)
commit80c4627b2719da6b90891d8f83251528416900e7
treea629596d0479d45f91c8ab0366b4ca1878118ebe
parent8a0a265d192450b7645dde2754fe8fb3f660fb81
dsa: mv88x6xxx: Refactor getting a single statistic

Move the code to retrieve a statistics counter into a function of its
own, so it can later be reused.

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