net: phy: add helper mii_10gbt_stat_mod_linkmode_lpa_t
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 16 Feb 2019 16:26:05 +0000 (17:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Feb 2019 00:43:54 +0000 (16:43 -0800)
commit9004a14cb688c69194002aa2fadda4433c3b79fb
tree7f67d12b64f082df6ec81fd20c6872f7f06cb0f6
parentbf9d787ba7ea87c5c676a73a0ba191edd5a0341a
net: phy: add helper mii_10gbt_stat_mod_linkmode_lpa_t

Similar to the existing helpers for the Clause 22 registers add helper
mii_10gbt_stat_mod_linkmode_lpa_t.

Note that this helper is defined in linux/mdio.h, not like the
Clause 22 helpers in linux/mii.h. Reason is that the Clause 45 register
constants are defined in uapi/linux/mdio.h. And uapi/linux/mdio.h
includes linux/mii.h before defining the C45 register constants.

v2:
- remove helpers that don't have users in this series

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>
include/linux/mdio.h