Name
of_get_phy_mode —
Get phy mode for given device_node
Synopsis
int of_get_phy_mode ( | struct device_node * np) ; |
Arguments
np
Pointer to the given device_node
Description
Get phy interface string from property “phy-mode” or “phy-connection-type”.
Return index of phy_modes
table that contains the string.
Return
Index on success, ENODEV
if string is not found, -EINVAL
if the
property does not exist, -ENODATA
if property does not have a value, and
-EILSEQ
if the string is not null-terminated within the length of the
property data.