]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit28b39bdbf95b19d68384bee73d79d0ece48c38d9
treea629596d0479d45f91c8ab0366b4ca1878118ebe
parent6cd4b87bda664d39e19d4b34c5fc6e0f3e0def5f
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