diff options
Diffstat (limited to 'include/linux/phy/phy.h')
-rw-r--r-- | include/linux/phy/phy.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h index 94f0044036..0d78923358 100644 --- a/include/linux/phy/phy.h +++ b/include/linux/phy/phy.h @@ -136,6 +136,8 @@ static inline void phy_set_bus_width(struct phy *phy, int bus_width) } struct phy *phy_get(struct device_d *dev, const char *string); struct phy *phy_optional_get(struct device_d *dev, const char *string); +struct phy *of_phy_get_by_phandle(struct device_d *dev, const char *phandle, + u8 index); void phy_put(struct phy *phy); struct phy *of_phy_get(struct device_node *np, const char *con_id); struct phy *of_phy_simple_xlate(struct device_d *dev, @@ -198,6 +200,12 @@ static inline struct phy *phy_optional_get(struct device_d *dev, return ERR_PTR(-ENOSYS); } +static inline struct phy *of_phy_get_by_phandle(struct device_d *dev, + const char *phandle, u8 index) +{ + return ERR_PTR(-ENOSYS); +} + static inline void phy_put(struct phy *phy) { } |