Message ID | 20211117225050.18395-7-kabel@kernel.org (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | Extend `phy-mode` to string array | expand |
On Wed, Nov 17, 2021 at 11:50:48PM +0100, Marek Behún wrote: > Now that phy.h defines macro DECLARE_PHY_INTERFACE_MASK(), use it > instead of DECLARE_BITMAP(). > > Signed-off-by: Marek Behún <kabel@kernel.org> Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
On Wed, Nov 17, 2021 at 11:50:48PM +0100, Marek Behún wrote: > Now that phy.h defines macro DECLARE_PHY_INTERFACE_MASK(), use it > instead of DECLARE_BITMAP(). > > Signed-off-by: Marek Behún <kabel@kernel.org> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Andrew
diff --git a/drivers/net/phy/marvell10g.c b/drivers/net/phy/marvell10g.c index b6fea119fe13..d289641190db 100644 --- a/drivers/net/phy/marvell10g.c +++ b/drivers/net/phy/marvell10g.c @@ -148,7 +148,7 @@ struct mv3310_chip { }; struct mv3310_priv { - DECLARE_BITMAP(supported_interfaces, PHY_INTERFACE_MODE_MAX); + DECLARE_PHY_INTERFACE_MASK(supported_interfaces); u32 firmware_ver; bool has_downshift;
Now that phy.h defines macro DECLARE_PHY_INTERFACE_MASK(), use it instead of DECLARE_BITMAP(). Signed-off-by: Marek Behún <kabel@kernel.org> --- drivers/net/phy/marvell10g.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)