of_mdio: Abstract a general interface for phy connect
authorDongpo Li <lidongpo@hisilicon.com>
Fri, 15 Jul 2016 08:26:34 +0000 (16:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Jul 2016 04:32:58 +0000 (21:32 -0700)
commitb786241253041c13d94309ca4dace301833f63d1
treebb7912b438cebc673cfa03b09ec65e7836302707
parent4960e4b1e69908ee70c716755a9415079e0d554f
of_mdio: Abstract a general interface for phy connect

Abstract a general interface "of_phy_get_and_connect"
for PHY connect. User will have no bother with getting
"phy-mode" and "phy-handle" any more.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Dongpo Li <lidongpo@hisilicon.com>
Reviewed-by: Jiancheng Xue <xuejiancheng@hisilicon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/of/of_mdio.c
include/linux/of_mdio.h