aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarek Vasut2023-03-19 18:09:40 +0100
committerMarek Vasut2023-04-07 14:23:26 +0200
commitab9b8129897cb557eb224445427f776749339ac2 (patch)
tree617ec377d0a47b98129353aff4c896b595b5fb50 /include
parentb6fcab0728cb5ea8712ef2e4b3e2fc679386a888 (diff)
phy: Add empty generic_phy_configure() implementation for PHY disabled case
In case PHY is not enabled, the generic_phy_configure() implementation is missing. Add an empty one so that the list of empty functions is complete. Fixes: f8da8a82c57 ("generic-phy: add configure op") Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Diffstat (limited to 'include')
-rw-r--r--include/generic-phy.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/generic-phy.h b/include/generic-phy.h
index f8eddeff67a..fa5f6fa3636 100644
--- a/include/generic-phy.h
+++ b/include/generic-phy.h
@@ -389,6 +389,11 @@ static inline int generic_phy_power_off(struct phy *phy)
return 0;
}
+static inline int generic_phy_configure(struct phy *phy, void *params)
+{
+ return 0;
+}
+
static inline int generic_phy_get_by_index(struct udevice *user, int index,
struct phy *phy)
{