commit | 589d197660e529dab0933261b402e079326815f8 | [log] [tgz] |
---|---|---|
author | Egil Hjelmeland <privat@egil-hjelmeland.no> | Fri Dec 29 13:38:24 2017 +0100 |
committer | David S. Miller <davem@davemloft.net> | Thu Jan 04 13:35:07 2018 -0500 |
tree | 7331b5e3c7d77f1124e6a29af640a3e11f2ef894 | |
parent | b17c6b1f4538b66e9bac6710b57b343c2aafadea [diff] |
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>