]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: improve definition of __ETHTOOL_LINK_MODE_MASK_NBITS
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 22 Feb 2019 18:25:59 +0000 (19:25 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Feb 2019 01:33:59 +0000 (17:33 -0800)
commit9fe9429e22bdba95693a0c61d9c6272dcbc0eead
tree02d60c34b9d0d259f959bd79da9b820129f5e266
parent91ca6f3167d5cdcd324ee86876b2e664328154b4
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>
include/linux/ethtool.h
include/uapi/linux/ethtool.h