net: phy: improve definition of __ETHTOOL_LINK_MODE_MASK_NBITS
The way to define __ETHTOOL_LINK_MODE_MASK_NBITS seems to be overly complicated, go with a standard approach instead. Whilst we're at it, move the comment to the right place. v2: - rebased Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
fad4271bec
commit
e728fdf062
2 changed files with 9 additions and 12 deletions
|
|
@ -98,10 +98,6 @@ static inline u32 ethtool_rxfh_indir_default(u32 index, u32 n_rx_rings)
|
|||
return index % n_rx_rings;
|
||||
}
|
||||
|
||||
/* number of link mode bits/ulongs handled internally by kernel */
|
||||
#define __ETHTOOL_LINK_MODE_MASK_NBITS \
|
||||
(__ETHTOOL_LINK_MODE_LAST + 1)
|
||||
|
||||
/* declare a link mode bitmap */
|
||||
#define __ETHTOOL_DECLARE_LINK_MODE_MASK(name) \
|
||||
DECLARE_BITMAP(name, __ETHTOOL_LINK_MODE_MASK_NBITS)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue