Skip to content

Commit

Permalink
net: dsa: convert dsa_user_phylink_fixed_state() to use dsa_phylink_t…
Browse files Browse the repository at this point in the history
…o_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>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Russell King (Oracle) authored and David S. Miller committed Apr 15, 2024
1 parent 9382b4f commit a788faf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/dsa/user.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a788faf

Please sign in to comment.