]> git.baikalelectronics.ru Git - kernel.git/commit
net: bcmgenet: Refactor register access in bcmgenet_mii_config
authorStefan Wahren <wahrenst@gmx.net>
Mon, 11 Nov 2019 19:49:24 +0000 (20:49 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Nov 2019 04:08:00 +0000 (20:08 -0800)
commit199259a4814f56e3ccf531e4902ed50767b9a105
tree1ff6bdc36451afe52bd81183dea38b39a85e532d
parent9d7592e7400443afb92e582ae2d60d8f91e29e61
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: Stefan Wahren <wahrenst@gmx.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmmii.c