Skip to content
Commit 4f8d81b7 authored by Stefan Wahren's avatar Stefan Wahren Committed by David S. Miller
Browse files

net: bcmgenet: Refactor register access in bcmgenet_mii_config



The register access in bcmgenet_mii_config() is a little bit opaque and
not easy to extend. In preparation for the missing RGMII PHY modes
move all the phy name assignments into the switch statement and the
register access to the end of the function. This make the code easier
to read and extend.

Signed-off-by: default avatarStefan Wahren <wahrenst@gmx.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a50e3a99
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment