net: Move PHY statistics code into PHY library helpers
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 25 Apr 2018 19:12:47 +0000 (12:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2018 15:53:02 +0000 (11:53 -0400)
commitc59530d0d5dccc96795af12c139f618182cf98db
tree9e841a2c973dd5fc1f68118fc722b232cab31198
parent834944073301e85001c3ed9913027ca47c6f889b
net: Move PHY statistics code into PHY library helpers

In order to make it possible for network device drivers that do not
necessarily have a phy_device attached, but still report PHY statistics,
have a preliminary refactoring consisting in creating helper functions
that encapsulate the PHY device driver knowledge within PHYLIB.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c
include/linux/phy.h
net/core/ethtool.c