net: dsa: lan9303: Adjust phy_addr_base expressions
authorEgil Hjelmeland <privat@egil-hjelmeland.no>
Fri, 29 Dec 2017 12:38:24 +0000 (13:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Jan 2018 18:35:07 +0000 (13:35 -0500)
commit589d197660e529dab0933261b402e079326815f8
tree7331b5e3c7d77f1124e6a29af640a3e11f2ef894
parentb17c6b1f4538b66e9bac6710b57b343c2aafadea
net: dsa: lan9303: Adjust phy_addr_base expressions

Simplify calculation of chip->phy_addr_base in lan9303_detect_phy_setup().

Use GENMASK to calculate phys_mii_mask from LAN9303_NUM_PORTS and
phy_addr_base.

Signed-off-by: Egil Hjelmeland <privat@egil-hjelmeland.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/lan9303-core.c