-
- Downloads
net: ethernet: hisilicon: hns: use phydev from struct net_device
The private structure contain a pointer to phydev, but the structure net_device already contain such pointer. So we can remove the pointer phydev in the private structure, and update the driver to use the one contained in struct net_device. Signed-off-by:Philippe Reynes <tremyfr@gmail.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/ethernet/hisilicon/hns/hns_enet.c 9 additions, 14 deletionsdrivers/net/ethernet/hisilicon/hns/hns_enet.c
- drivers/net/ethernet/hisilicon/hns/hns_enet.h 0 additions, 1 deletiondrivers/net/ethernet/hisilicon/hns/hns_enet.h
- drivers/net/ethernet/hisilicon/hns/hns_ethtool.c 15 additions, 18 deletionsdrivers/net/ethernet/hisilicon/hns/hns_ethtool.c
Loading
Please sign in to comment