]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: ethernet: ti: am65-cpsw: Simplify setting supported interface
authorSiddharth Vadapalli <s-vadapalli@ti.com>
Tue, 21 Mar 2023 11:19:55 +0000 (16:49 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 23 Mar 2023 05:16:24 +0000 (22:16 -0700)
commita2935a1cd85fc76198a1980abfeb6dc9a776dcf3
treeb5bc99103a4c356b106d91410f0960ec8c986226
parent603c3345589de01e26c93d3a74413af6ca1c93b9
net: ethernet: ti: am65-cpsw: Simplify setting supported interface

Convert the existing IF/ELSE statement based approach of setting the
supported_interfaces member of struct "phylink_config", to SWITCH
statements. This will help scale to newer PHY-MODES as well as newer
compatibles.

Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/am65-cpsw-nuss.c