]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit24e21d9a2976b29a60715661da216a7d4b7f5375
tree5a4f1bde6b7ff21acbcade0580b6e89018466b3e
parentbb495fda102c3edd019de77840d0f1838e9ccd73
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