]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
phy: Add empty generic_phy_configure() implementation for PHY disabled case
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 19 Mar 2023 17:09:40 +0000 (18:09 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Fri, 7 Apr 2023 12:23:26 +0000 (14:23 +0200)
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>
include/generic-phy.h

index f8eddeff67aeb0e52332879d887b7c6544c21cd4..fa5f6fa36364d433a30dbf55b51376835840a213 100644 (file)
@@ -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)
 {