commit | e63062616df323cee4266ed3f964e20e00092d9a | [log] [tgz] |
---|---|---|
author | Russell King <rmk+kernel@armlinux.org.uk> | Thu Jun 18 14:45:37 2020 +0100 |
committer | David S. Miller <davem@davemloft.net> | Fri Jun 19 20:17:14 2020 -0700 |
tree | 88c9482f770a632bb7f3d6c609b8eb3e632fa2f6 | |
parent | 454a78d17845882aa552dc3ab86605910da9a96d [diff] |
net: phy: clean up PHY ID reading Rearrange the code to read the PHY IDs, so we don't call get_phy_id() only to immediately call get_phy_c45_ids(). Move that logic into get_phy_device(), which results in better readability. 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>