net: phy: Simplify the logic of phy_connect_fixed()
authorBin Meng <bmeng.cn@gmail.com>
Sun, 14 Mar 2021 12:14:52 +0000 (20:14 +0800)
committerPriyanka Jain <priyanka.jain@nxp.com>
Thu, 15 Apr 2021 08:52:17 +0000 (14:22 +0530)
commit676fbd3dbf6b74b1369e0fe4baa63d37bb1d8684
treee860be8958a0fa1678a5e30484572ac558722202
parent188ff18f94174ac828f480d777eae16755efb12e
net: phy: Simplify the logic of phy_connect_fixed()

Simplify the logic of phy_connect_fixed() by using the new API
ofnode_phy_is_fixed_link(), which brings additional bonus of
supporting the old DT bindings.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/net/phy/phy.c