mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 07:31:41 +00:00
net: phylink: use more linkmode_*
Use more linkmode_* helpers rather than open-coding the bitmap operations. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4980b2c4fe
commit
554032cdfb
2 changed files with 8 additions and 5 deletions
|
@ -82,4 +82,10 @@ static inline int linkmode_equal(const unsigned long *src1,
|
|||
return bitmap_equal(src1, src2, __ETHTOOL_LINK_MODE_MASK_NBITS);
|
||||
}
|
||||
|
||||
static inline int linkmode_subset(const unsigned long *src1,
|
||||
const unsigned long *src2)
|
||||
{
|
||||
return bitmap_subset(src1, src2, __ETHTOOL_LINK_MODE_MASK_NBITS);
|
||||
}
|
||||
|
||||
#endif /* __LINKMODE_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue