]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: stmmac: qcom-ethqos: remove ethqos->speed
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Sat, 12 Apr 2025 14:09:54 +0000 (15:09 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Apr 2025 00:44:45 +0000 (17:44 -0700)
commita3d54648ada2088c34a429ad16a39fb6c4a983f3
tree9cb7f7b0792ac4d66aba33627cd9dc04bd932cab
parentb4589810082a6e138f61f359757cb6a6790bc09c
net: stmmac: qcom-ethqos: remove ethqos->speed

Rather than ethqos_fix_mac_speed() storing the speed in struct
qcom_ethqos and then functions that are only called from here reading
that speed, pass the speed to the called functions instead.

This removes all readers of this struct member, which then allows the
removal of the two places that set its value and the struct member.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/E1u3bYQ-000EcK-9K@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c