]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: phy: move definition of struct mdio_board_entry to mdio-boardinfo.c
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 11 Jun 2025 20:10:27 +0000 (22:10 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 13 Jun 2025 23:37:23 +0000 (16:37 -0700)
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>
drivers/net/phy/mdio-boardinfo.c
drivers/net/phy/mdio-boardinfo.h

index 0360c0d08559285bce2ed42c71537040f810c367..2b2728b687a6fe40e40ef795cc37277744cbe95e 100644 (file)
 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
index 773bb51399be9a934417359e6ccda42d6cfeebce..765c64713cb9197892125db9ceaac396b2addaa7 100644 (file)
 #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,