]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: pcs: xpcs: move searching ID list out of line
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 4 Oct 2024 10:21:12 +0000 (11:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Oct 2024 11:13:11 +0000 (12:13 +0100)
commit7921d3e602fc89a36dbef5b46d307bed47396409
tree64d6cab69d1d26adfc8cc0fa3631ae2518c5b855
parent135d118bfd01471d2953e0bd941adde482e54a6d
net: pcs: xpcs: move searching ID list out of line

Move the searching of the physical ID out of xpcs_create() and into
its own xpcs_identify() function, which makes it self contained.
This reduces the complexity in xpcs_craete(), making it easier to
follow, rather than having a lot of once-run code in the big for()
loop.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/pcs/pcs-xpcs.c