diff options
| author | Marek BehĂșn <[email protected]> | 2022-04-07 00:33:01 +0200 |
|---|---|---|
| committer | Ramon Fried <[email protected]> | 2022-04-10 08:44:12 +0300 |
| commit | 123ca114e07ecf28aa2538748d733e2b22d8b8b5 (patch) | |
| tree | 0a5481e51e4e50b33daf4d10f37574f6f797b04f /include/phy_interface.h | |
| parent | 9c06b4815ce1d663085c214133762614bba79fbe (diff) | |
net: introduce helpers to get PHY interface mode from a device/ofnode
Add helpers ofnode_read_phy_mode() and dev_read_phy_mode() to parse the
"phy-mode" / "phy-connection-type" property. Add corresponding UT test.
Use them treewide.
This allows us to inline the phy_get_interface_by_name() into
ofnode_read_phy_mode(), since the former is not used anymore.
Signed-off-by: Marek BehĂșn <[email protected]>
Reviewed-by: Ramon Fried <[email protected]>
Tested-by: Patrice Chotard <[email protected]>
Diffstat (limited to 'include/phy_interface.h')
0 files changed, 0 insertions, 0 deletions
