There is a typo(waitting) in comments.
FIx it.
Signed-off-by: Zhang Jiaming <[email protected]>
---
drivers/net/ethernet/hisilicon/hns_mdio.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/hisilicon/hns_mdio.c b/drivers/net/ethernet/hisilicon/hns_mdio.c
index 07fdab58001d..c239c407360f 100644
--- a/drivers/net/ethernet/hisilicon/hns_mdio.c
+++ b/drivers/net/ethernet/hisilicon/hns_mdio.c
@@ -174,7 +174,7 @@ static int hns_mdio_wait_ready(struct mii_bus *bus)
u32 cmd_reg_value;
int i;
- /* waitting for MDIO_COMMAND_REG 's mdio_start==0 */
+ /* waiting for MDIO_COMMAND_REG 's mdio_start==0 */
/* after that can do read or write*/
for (i = 0; i < MDIO_TIMEOUT; i++) {
cmd_reg_value = MDIO_GET_REG_BIT(mdio_dev,
@@ -319,7 +319,7 @@ static int hns_mdio_read(struct mii_bus *bus, int phy_id, int regnum)
MDIO_C45_READ, phy_id, devad);
}
- /* Step 5: waitting for MDIO_COMMAND_REG 's mdio_start==0,*/
+ /* Step 5: waiting for MDIO_COMMAND_REG 's mdio_start==0,*/
/* check for read or write opt is finished */
ret = hns_mdio_wait_ready(bus);
if (ret) {
--
2.34.1
Hi--
On 7/3/22 18:42, Zhang Jiaming wrote:
> There is a typo(waitting) in comments.
> FIx it.
>
> Signed-off-by: Zhang Jiaming <[email protected]>
> ---
> drivers/net/ethernet/hisilicon/hns_mdio.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/ethernet/hisilicon/hns_mdio.c b/drivers/net/ethernet/hisilicon/hns_mdio.c
> index 07fdab58001d..c239c407360f 100644
> --- a/drivers/net/ethernet/hisilicon/hns_mdio.c
> +++ b/drivers/net/ethernet/hisilicon/hns_mdio.c
> @@ -174,7 +174,7 @@ static int hns_mdio_wait_ready(struct mii_bus *bus)
> u32 cmd_reg_value;
> int i;
>
> - /* waitting for MDIO_COMMAND_REG 's mdio_start==0 */
> + /* waiting for MDIO_COMMAND_REG 's mdio_start==0 */
Also: no space here: MDIO_COMMAND_REG's
> /* after that can do read or write*/
> for (i = 0; i < MDIO_TIMEOUT; i++) {
> cmd_reg_value = MDIO_GET_REG_BIT(mdio_dev,
> @@ -319,7 +319,7 @@ static int hns_mdio_read(struct mii_bus *bus, int phy_id, int regnum)
> MDIO_C45_READ, phy_id, devad);
> }
>
> - /* Step 5: waitting for MDIO_COMMAND_REG 's mdio_start==0,*/
> + /* Step 5: waiting for MDIO_COMMAND_REG 's mdio_start==0,*/
Same here.
> /* check for read or write opt is finished */
> ret = hns_mdio_wait_ready(bus);
> if (ret) {
--
~Randy
Fix spelling of 'waitting' in comments.
remove unnecessary space of 'MDIO_COMMAND_REG 's'.
Signed-off-by: Zhang Jiaming <[email protected]>
---
drivers/net/ethernet/hisilicon/hns_mdio.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/hisilicon/hns_mdio.c b/drivers/net/ethernet/hisilicon/hns_mdio.c
index 07fdab58001d..c2ae1b4f9a5f 100644
--- a/drivers/net/ethernet/hisilicon/hns_mdio.c
+++ b/drivers/net/ethernet/hisilicon/hns_mdio.c
@@ -174,7 +174,7 @@ static int hns_mdio_wait_ready(struct mii_bus *bus)
u32 cmd_reg_value;
int i;
- /* waitting for MDIO_COMMAND_REG 's mdio_start==0 */
+ /* waiting for MDIO_COMMAND_REG's mdio_start==0 */
/* after that can do read or write*/
for (i = 0; i < MDIO_TIMEOUT; i++) {
cmd_reg_value = MDIO_GET_REG_BIT(mdio_dev,
@@ -319,7 +319,7 @@ static int hns_mdio_read(struct mii_bus *bus, int phy_id, int regnum)
MDIO_C45_READ, phy_id, devad);
}
- /* Step 5: waitting for MDIO_COMMAND_REG 's mdio_start==0,*/
+ /* Step 5: waiting for MDIO_COMMAND_REG's mdio_start==0,*/
/* check for read or write opt is finished */
ret = hns_mdio_wait_ready(bus);
if (ret) {
--
2.34.1
Hello:
This patch was applied to netdev/net-next.git (master)
by David S. Miller <[email protected]>:
On Mon, 4 Jul 2022 17:36:32 +0800 you wrote:
> Fix spelling of 'waitting' in comments.
> remove unnecessary space of 'MDIO_COMMAND_REG 's'.
>
> Signed-off-by: Zhang Jiaming <[email protected]>
> ---
> drivers/net/ethernet/hisilicon/hns_mdio.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Here is the summary with links:
- net: hns: Fix spelling mistakes in comments.
https://git.kernel.org/netdev/net-next/c/874bdbfe624e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html