net: phy: use mii_10gbt_stat_mod_linkmode_lpa_t in genphy_c45_read_lpa
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 16 Feb 2019 16:26:50 +0000 (17:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Feb 2019 00:43:55 +0000 (16:43 -0800)
commit96c2be34e6ceb8141015daac1a749aafce95e1bd
treec1f9f95c5cd25ef13d4f4c2b658387a3a396e49d
parent9004a14cb688c69194002aa2fadda4433c3b79fb
net: phy: use mii_10gbt_stat_mod_linkmode_lpa_t in genphy_c45_read_lpa

Use mii_10gbt_stat_mod_linkmode_lpa_t() in genphy_c45_read_lpa() to
simplify the code.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy-c45.c