]> www.infradead.org Git - users/willy/xarray.git/commit
net: stmmac: ethqos: clean up setting serdes speed
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 29 May 2024 08:40:59 +0000 (09:40 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 31 May 2024 01:30:11 +0000 (18:30 -0700)
commit7efc706577046a8dd2a11ba7942e3a52a30c8b68
tree48a5032b460f958e54a630cfcf0f893adacce281
parentcd56ff75ccfc37aab4b35b17b84d3ba08f33b933
net: stmmac: ethqos: clean up setting serdes speed

There are four repititions of the same sequence of code, three of which
are identical. Pull these out into a separate function to improve
readability.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Halaney <ahalaney@redhat.com>
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
Link: https://lore.kernel.org/r/E1sCErj-00EOQ9-Vh@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c