net: Add ethtool to mii advertisment conversion helpers
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 16 Nov 2011 23:36:59 +0000 (18:36 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2011 23:36:59 +0000 (18:36 -0500)
commit28011cf19b75df9d3f35489a7599a97ec0b3f1a0
treecc058e15191db60adb45e426fc3d328e9d246b41
parentf85fa279138489543206381883c8f67ef94aa912
net: Add ethtool to mii advertisment conversion helpers

Translating between ethtool advertisement settings and MII
advertisements are common operations for ethernet drivers.  This patch
adds a set of helper functions that implements the conversion.  The
patch then modifies a couple of the drivers to use the new functions.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2.c
drivers/net/ethernet/broadcom/tg3.c
drivers/net/ethernet/sun/niu.c
drivers/net/mii.c
drivers/net/phy/phy_device.c
include/linux/mii.h