diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2024-04-12 16:05:05 +0100 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2024-04-12 17:05:53 +0100 |
commit | 788c428eeb8660ee3f89b19c9398948b4c9e854f (patch) | |
tree | 9d8ef9b17bb2284627e059b288ddd4404dd39757 | |
parent | 392b4781f4875701982c8cc15082aedb8a3aac3e (diff) |
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.
Suggested-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
-rw-r--r-- | net/dsa/user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/user.c b/net/dsa/user.c index b15e71cc342c..b556a4bf92c7 100644 --- a/net/dsa/user.c +++ b/net/dsa/user.c @@ -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 |