diff options
| author | Heiner Kallweit <hkallweit1@gmail.com> | 2025-06-11 23:10:27 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-06-14 02:37:23 +0300 |
| commit | db4920604a3f2ec40a743c7632d452549736efa2 (patch) | |
| tree | abf2b3d5f44c0a8da8c14a92183dcefb0e1cf341 | |
| parent | 0893bf6bb414084bfad2c8fd494fb22545165289 (diff) | |
| download | linux-db4920604a3f2ec40a743c7632d452549736efa2.tar.xz | |
net: phy: move definition of struct mdio_board_entry to mdio-boardinfo.c
Struct mdio_board_entry isn't used outside mdio-boardinfo.c, so remove
the definition from the header file.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/0afe52d0-6fe6-434a-9881-3979661ff7b0@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
| -rw-r--r-- | drivers/net/phy/mdio-boardinfo.c | 5 | ||||
| -rw-r--r-- | drivers/net/phy/mdio-boardinfo.h | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/phy/mdio-boardinfo.c b/drivers/net/phy/mdio-boardinfo.c index 0360c0d08559..2b2728b687a6 100644 --- a/drivers/net/phy/mdio-boardinfo.c +++ b/drivers/net/phy/mdio-boardinfo.c @@ -14,6 +14,11 @@ static LIST_HEAD(mdio_board_list); static DEFINE_MUTEX(mdio_board_lock); +struct mdio_board_entry { + struct list_head list; + struct mdio_board_info board_info; +}; + /** * mdiobus_setup_mdiodev_from_board_info - create and setup MDIO devices * from pre-collected board specific MDIO information diff --git a/drivers/net/phy/mdio-boardinfo.h b/drivers/net/phy/mdio-boardinfo.h index 773bb51399be..765c64713cb9 100644 --- a/drivers/net/phy/mdio-boardinfo.h +++ b/drivers/net/phy/mdio-boardinfo.h @@ -10,11 +10,6 @@ #include <linux/phy.h> #include <linux/mutex.h> -struct mdio_board_entry { - struct list_head list; - struct mdio_board_info board_info; -}; - void mdiobus_setup_mdiodev_from_board_info(struct mii_bus *bus, int (*cb) (struct mii_bus *bus, |
