* [PATCH net-next] net: phy: remove device_phy_find_device
@ 2025-04-13 14:09 Heiner Kallweit
2025-04-13 20:15 ` Andrew Lunn
2025-04-15 15:40 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Heiner Kallweit @ 2025-04-13 14:09 UTC (permalink / raw)
To: Paolo Abeni, Jakub Kicinski, David Miller, Eric Dumazet,
Andrew Lunn, Russell King - ARM Linux
Cc: netdev@vger.kernel.org
AFAICS this function has never had a user.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
drivers/net/phy/phy_device.c | 12 ------------
include/linux/phy.h | 6 ------
2 files changed, 18 deletions(-)
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c
index 675fbd225..d948e4d86 100644
--- a/drivers/net/phy/phy_device.c
+++ b/drivers/net/phy/phy_device.c
@@ -3208,18 +3208,6 @@ struct phy_device *fwnode_phy_find_device(struct fwnode_handle *phy_fwnode)
}
EXPORT_SYMBOL(fwnode_phy_find_device);
-/**
- * device_phy_find_device - For the given device, get the phy_device
- * @dev: Pointer to the given device
- *
- * Refer return conditions of fwnode_phy_find_device().
- */
-struct phy_device *device_phy_find_device(struct device *dev)
-{
- return fwnode_phy_find_device(dev_fwnode(dev));
-}
-EXPORT_SYMBOL_GPL(device_phy_find_device);
-
/**
* fwnode_get_phy_node - Get the phy_node using the named reference.
* @fwnode: Pointer to fwnode from which phy_node has to be obtained.
diff --git a/include/linux/phy.h b/include/linux/phy.h
index a2bfae80c..fb755358d 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -1757,7 +1757,6 @@ struct phy_device *phy_device_create(struct mii_bus *bus, int addr, u32 phy_id,
int fwnode_get_phy_id(struct fwnode_handle *fwnode, u32 *phy_id);
struct mdio_device *fwnode_mdio_find_device(struct fwnode_handle *fwnode);
struct phy_device *fwnode_phy_find_device(struct fwnode_handle *phy_fwnode);
-struct phy_device *device_phy_find_device(struct device *dev);
struct fwnode_handle *fwnode_get_phy_node(const struct fwnode_handle *fwnode);
struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45);
int phy_device_register(struct phy_device *phy);
@@ -1779,11 +1778,6 @@ struct phy_device *fwnode_phy_find_device(struct fwnode_handle *phy_fwnode)
return NULL;
}
-static inline struct phy_device *device_phy_find_device(struct device *dev)
-{
- return NULL;
-}
-
static inline
struct fwnode_handle *fwnode_get_phy_node(struct fwnode_handle *fwnode)
{
--
2.49.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] net: phy: remove device_phy_find_device
2025-04-13 14:09 [PATCH net-next] net: phy: remove device_phy_find_device Heiner Kallweit
@ 2025-04-13 20:15 ` Andrew Lunn
2025-04-15 15:40 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Lunn @ 2025-04-13 20:15 UTC (permalink / raw)
To: Heiner Kallweit
Cc: Paolo Abeni, Jakub Kicinski, David Miller, Eric Dumazet,
Russell King - ARM Linux, netdev@vger.kernel.org
On Sun, Apr 13, 2025 at 04:09:40PM +0200, Heiner Kallweit wrote:
> AFAICS this function has never had a user.
>
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] net: phy: remove device_phy_find_device
2025-04-13 14:09 [PATCH net-next] net: phy: remove device_phy_find_device Heiner Kallweit
2025-04-13 20:15 ` Andrew Lunn
@ 2025-04-15 15:40 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-04-15 15:40 UTC (permalink / raw)
To: Heiner Kallweit; +Cc: pabeni, kuba, davem, edumazet, andrew, linux, netdev
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Sun, 13 Apr 2025 16:09:40 +0200 you wrote:
> AFAICS this function has never had a user.
>
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> ---
> drivers/net/phy/phy_device.c | 12 ------------
> include/linux/phy.h | 6 ------
> 2 files changed, 18 deletions(-)
Here is the summary with links:
- [net-next] net: phy: remove device_phy_find_device
https://git.kernel.org/netdev/net-next/c/f99564688f38
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-04-15 15:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-13 14:09 [PATCH net-next] net: phy: remove device_phy_find_device Heiner Kallweit
2025-04-13 20:15 ` Andrew Lunn
2025-04-15 15:40 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).