From: Heiner Kallweit <hkallweit1@gmail.com>
To: Andrew Lunn <andrew+netdev@lunn.ch>,
Paolo Abeni <pabeni@redhat.com>, Jakub Kicinski <kuba@kernel.org>,
David Miller <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Simon Horman <horms@kernel.org>, Andrew Lunn <andrew@lunn.ch>,
Russell King - ARM Linux <linux@armlinux.org.uk>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: [PATCH net-next 2/4] net: phy: move definition of struct mdio_board_entry to mdio-boardinfo.c
Date: Wed, 11 Jun 2025 22:10:27 +0200 [thread overview]
Message-ID: <0afe52d0-6fe6-434a-9881-3979661ff7b0@gmail.com> (raw)
In-Reply-To: <6ae7bda0-c093-468a-8ac0-50a2afa73c45@gmail.com>
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>
---
drivers/net/phy/mdio-boardinfo.c | 5 +++++
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 0360c0d08..2b2728b68 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 773bb5139..765c64713 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,
--
2.49.0
next prev parent reply other threads:[~2025-06-11 20:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-11 20:08 [PATCH net-next 0/4] net: phy: improve mdio-boardinfo handling Heiner Kallweit
2025-06-11 20:09 ` [PATCH net-next 1/4] net: phy: simplify mdiobus_setup_mdiodev_from_board_info Heiner Kallweit
2025-06-13 15:08 ` Andrew Lunn
2025-06-11 20:10 ` Heiner Kallweit [this message]
2025-06-13 15:09 ` [PATCH net-next 2/4] net: phy: move definition of struct mdio_board_entry to mdio-boardinfo.c Andrew Lunn
2025-06-11 20:11 ` [PATCH net-next 3/4] net: phy: improve mdio-boardinfo.h Heiner Kallweit
2025-06-13 15:09 ` Andrew Lunn
2025-06-11 20:13 ` [PATCH net-next 4/4] net: phy: directly copy struct mdio_board_info in mdiobus_register_board_info Heiner Kallweit
2025-06-13 15:10 ` Andrew Lunn
2025-06-14 0:20 ` [PATCH net-next 0/4] net: phy: improve mdio-boardinfo handling patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0afe52d0-6fe6-434a-9881-3979661ff7b0@gmail.com \
--to=hkallweit1@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.