提交 d5e1c0ef 编写于 作者: E Erez Alfasi 提交者: Saeed Mahameed

net/mlx5e: ethtool, Fix a typo in WOL function names

Fix a typo in 'mlx5e_refomrat_wol_mode_mlx5_to_linux' and
'mlx5e_refomrat_wol_mode_linux_to_mlx5' function names:
"refomrat" -> "reformat".

Fixes: 928cfe87 ("net/mlx5e: Wake On LAN support")
Signed-off-by: NErez Alfasi <ereza@mellanox.com>
Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
上级 537f3210
...@@ -1431,7 +1431,7 @@ static __u32 mlx5e_get_wol_supported(struct mlx5_core_dev *mdev) ...@@ -1431,7 +1431,7 @@ static __u32 mlx5e_get_wol_supported(struct mlx5_core_dev *mdev)
return ret; return ret;
} }
static __u32 mlx5e_refomrat_wol_mode_mlx5_to_linux(u8 mode) static __u32 mlx5e_reformat_wol_mode_mlx5_to_linux(u8 mode)
{ {
__u32 ret = 0; __u32 ret = 0;
...@@ -1459,7 +1459,7 @@ static __u32 mlx5e_refomrat_wol_mode_mlx5_to_linux(u8 mode) ...@@ -1459,7 +1459,7 @@ static __u32 mlx5e_refomrat_wol_mode_mlx5_to_linux(u8 mode)
return ret; return ret;
} }
static u8 mlx5e_refomrat_wol_mode_linux_to_mlx5(__u32 mode) static u8 mlx5e_reformat_wol_mode_linux_to_mlx5(__u32 mode)
{ {
u8 ret = 0; u8 ret = 0;
...@@ -1505,7 +1505,7 @@ static void mlx5e_get_wol(struct net_device *netdev, ...@@ -1505,7 +1505,7 @@ static void mlx5e_get_wol(struct net_device *netdev,
if (err) if (err)
return; return;
wol->wolopts = mlx5e_refomrat_wol_mode_mlx5_to_linux(mlx5_wol_mode); wol->wolopts = mlx5e_reformat_wol_mode_mlx5_to_linux(mlx5_wol_mode);
} }
static int mlx5e_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) static int mlx5e_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol)
...@@ -1521,7 +1521,7 @@ static int mlx5e_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) ...@@ -1521,7 +1521,7 @@ static int mlx5e_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol)
if (wol->wolopts & ~wol_supported) if (wol->wolopts & ~wol_supported)
return -EINVAL; return -EINVAL;
mlx5_wol_mode = mlx5e_refomrat_wol_mode_linux_to_mlx5(wol->wolopts); mlx5_wol_mode = mlx5e_reformat_wol_mode_linux_to_mlx5(wol->wolopts);
return mlx5_set_port_wol(mdev, mlx5_wol_mode); return mlx5_set_port_wol(mdev, mlx5_wol_mode);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册