提交 bd601cc4 编写于 作者: S stephen hemminger 提交者: David S. Miller

xgmac: cleanups

Make local function static, make ethtool_ops const.
Compile tested only.
Signed-off-by: NStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 9b07be4b
......@@ -1440,7 +1440,7 @@ static void xgmac_poll_controller(struct net_device *dev)
}
#endif
struct rtnl_link_stats64 *
static struct rtnl_link_stats64 *
xgmac_get_stats64(struct net_device *dev,
struct rtnl_link_stats64 *storage)
{
......@@ -1675,7 +1675,7 @@ static int xgmac_set_wol(struct net_device *dev,
return 0;
}
static struct ethtool_ops xgmac_ethtool_ops = {
static const struct ethtool_ops xgmac_ethtool_ops = {
.get_settings = xgmac_ethtool_getsettings,
.get_link = ethtool_op_get_link,
.get_pauseparam = xgmac_get_pauseparam,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册