net: phy: marvell10g: table driven mactype decode
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 24 Nov 2023 12:27:58 +0000 (12:27 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 28 Nov 2023 02:04:11 +0000 (18:04 -0800)
commit2cb6d63b30c6fbc7cf5f671279be4a94049e141f
tree730956d5a71a9bac4b208afe07a18e3bd384f3b3
parent243ad8df7a1bd24c2e01bd99d9f0bb88844dae91
net: phy: marvell10g: table driven mactype decode

Replace the code-based mactype decode with a table driven approach.
This will allow us to fill in the possible_interfaces cleanly.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://lore.kernel.org/r/E1r6VHq-00DDLT-In@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/marvell10g.c