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>
This commit is contained in:
Heiner Kallweit
2025-06-11 22:10:27 +02:00
committed by Jakub Kicinski
parent 0893bf6bb4
commit db4920604a
2 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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,