OSDN Git Service

phy: marvell: Rename mii_lpa_to_linkmode_lpa_t
authorAndrew Lunn <andrew@lunn.ch>
Wed, 5 Dec 2018 20:49:42 +0000 (21:49 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Dec 2018 00:26:16 +0000 (16:26 -0800)
commitab9cb729ab0d4151f7ba76dd3ff592242a694754
treedbb9ee6222457c24a5c2010dddfc5c3bb244aca3
parent78a24df370072ea3b7c0a466efd776fc8f87c73a
phy: marvell: Rename mii_lpa_to_linkmode_lpa_t

Rename mii_lpa_to_linkmode_lpa_t to mii_lpa_mod_linkmode_lpa_t to
indicate it modifies the passed linkmode bitmap, without clearing any
other bits.

Also, ensure bit are clear which the lpa indicates should not be set.

Fixes: c0ec3c273677 ("net: phy: Convert u32 phydev->lp_advertising to linkmode")
Suggested-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell.c