Commit 96fa96e1 authored by Russell King (Oracle)'s avatar Russell King (Oracle) Committed by David S. Miller

net: linkmode: add linkmode_fill() helper

Add a linkmode_fill() helper, which will allow us to convert phylink's
open coded bitmap_fill() operations.
Signed-off-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9a1f02f3
...@@ -10,6 +10,11 @@ static inline void linkmode_zero(unsigned long *dst) ...@@ -10,6 +10,11 @@ static inline void linkmode_zero(unsigned long *dst)
bitmap_zero(dst, __ETHTOOL_LINK_MODE_MASK_NBITS); bitmap_zero(dst, __ETHTOOL_LINK_MODE_MASK_NBITS);
} }
static inline void linkmode_fill(unsigned long *dst)
{
bitmap_fill(dst, __ETHTOOL_LINK_MODE_MASK_NBITS);
}
static inline void linkmode_copy(unsigned long *dst, const unsigned long *src) static inline void linkmode_copy(unsigned long *dst, const unsigned long *src)
{ {
bitmap_copy(dst, src, __ETHTOOL_LINK_MODE_MASK_NBITS); bitmap_copy(dst, src, __ETHTOOL_LINK_MODE_MASK_NBITS);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment