net: phy: move phy MMD accessors to phy-core.c
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 21 Mar 2017 16:36:37 +0000 (16:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Mar 2017 19:42:59 +0000 (12:42 -0700)
commit9860118b58241169f67ba77dfeb935fcf53ce4cd
tree5a4f1bde6b7ff21acbcade0580b6e89018466b3e
parent2d72d5016f00fc7d64b95e79405787dea73669af
net: phy: move phy MMD accessors to phy-core.c

Move the phy_(read|write)__mmd() helpers out of line, they will become
our main MMD accessor functions, and so will be a little more complex.
This complexity doesn't belong in an inline function.  Also move the
_indirect variants as well to keep like functionality together.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/Makefile
drivers/net/phy/phy-core.c [new file with mode: 0644]
drivers/net/phy/phy.c
include/linux/phy.h