summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2025-02-22 21:33:22 +0100
committerMarek Vasut <[email protected]>2025-02-26 18:26:57 +0100
commitf15919436bea3336f2dcb86f564180aceccc9c47 (patch)
treeeac9b843bc8309ad4effef16ca7d494015118560 /include
parenta6a38bba5d14d68d2d86e137b7408393f29c5b7a (diff)
net: miiphy: Introduce mdio_init()
Introduce mdio_init() split off from mdio_alloc(), which is used to initialize already allocated struct mii_dev. Reviewed-by: Paul Barker <[email protected]> Signed-off-by: Marek Vasut <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/miiphy.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/miiphy.h b/include/miiphy.h
index 0464f5dc219..40eb14669b8 100644
--- a/include/miiphy.h
+++ b/include/miiphy.h
@@ -44,6 +44,7 @@ struct phy_device *mdio_phydev_for_ethname(const char *devname);
void miiphy_listdev(void);
+void mdio_init(struct mii_dev *bus);
struct mii_dev *mdio_alloc(void);
void mdio_free(struct mii_dev *bus);
int mdio_register(struct mii_dev *bus);