Skip to contentSkip to conversation

net: dsa: convert dsa_user_phylink_fixed_state() to use dsa_phylink_to_port()

PATCH Applied Russell King (Oracle) 2 participants 2 messages Apr 12, 2024 – Apr 15, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: dsa: convert dsa_user_phylink_fixed_state() to use dsa_phylink_to_port()

Convert dsa_user_phylink_fixed_state() to use the newly introduced dsa_phylink_to_port() helper.

---
 net/dsa/user.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/dsa/user.c +1 -1
index 16d395bb1a1f..c94b868855aa 100644
@@ -2445,7 +2445,7 @@ EXPORT_SYMBOL_GPL(dsa_port_phylink_mac_change);
 static void dsa_user_phylink_fixed_state(struct phylink_config *config,
 					 struct phylink_link_state *state)
 {
-	struct dsa_port *dp = container_of(config, struct dsa_port, pl_config);
+	struct dsa_port *dp = dsa_phylink_to_port(config);
 	struct dsa_switch *ds = dp->ds;
 
 	/* No need to check that this operation is valid, the callback would
Signature · 1 line
2.30.2
#1 lore raw
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:

Quoted 8 lines · On Fri, 12 Apr 2024 16:15:03 +0100 you wrote:

Convert dsa_user_phylink_fixed_state() to use the newly introduced dsa_phylink_to_port() helper.

---
 net/dsa/user.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
- [net-next] net: dsa: convert dsa_user_phylink_fixed_state() to use dsa_phylink_to_port()

    https://git.kernel.org/netdev/net-next/c/a788fafff56f

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html