net: marvell: mvpp2: use mvpp2_is_xlg() helper elsewhere
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 11 Feb 2019 10:23:15 +0000 (10:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Feb 2019 17:32:51 +0000 (12:32 -0500)
commit1d9b041e9c5cb6a06e0943f14daf9806e6fe55f1
tree9d8e0d73d4f8030cbb8fdbcca659a38b4761257b
parentb7d286f01b9d9021695188092e36f405f2ecd276
net: marvell: mvpp2: use mvpp2_is_xlg() helper elsewhere

There are several places which make the decision whether to access the
XLGMAC vs GMAC that only check for PHY_INTERFACE_MODE_10GKR and not its
XAUI variant.  Switch these to use the new helper so that we have
consistency through the driver.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c