2022-07-16 14:03:04

by Jilin Yuan

[permalink] [raw]
Subject: [PATCH] usb/typec/tcpm: fix repeated words in comments

Delete the redundant word 'to'.

Signed-off-by: Jilin Yuan <[email protected]>
---
drivers/usb/typec/tcpm/tcpm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/typec/tcpm/tcpm.c b/drivers/usb/typec/tcpm/tcpm.c
index 3bc2f4ebd1fe..2d80b5b17ea4 100644
--- a/drivers/usb/typec/tcpm/tcpm.c
+++ b/drivers/usb/typec/tcpm/tcpm.c
@@ -4453,7 +4453,7 @@ static void run_state_machine(struct tcpm_port *port)
* The specification suggests that dual mode ports in sink
* mode should transition to state PE_SRC_Transition_to_default.
* See USB power delivery specification chapter 8.3.3.6.1.3.
- * This would mean to to
+ * This would mean to
* - turn off VCONN, reset power supply
* - request hardware reset
* - turn on VCONN
--
2.36.1


2022-07-16 14:25:36

by Guenter Roeck

[permalink] [raw]
Subject: Re: [PATCH] usb/typec/tcpm: fix repeated words in comments

On 7/16/22 06:56, Jilin Yuan wrote:
> Delete the redundant word 'to'.
>
> Signed-off-by: Jilin Yuan <[email protected]>

Reviewed-by: Guenter Roeck <[email protected]>

> ---
> drivers/usb/typec/tcpm/tcpm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/usb/typec/tcpm/tcpm.c b/drivers/usb/typec/tcpm/tcpm.c
> index 3bc2f4ebd1fe..2d80b5b17ea4 100644
> --- a/drivers/usb/typec/tcpm/tcpm.c
> +++ b/drivers/usb/typec/tcpm/tcpm.c
> @@ -4453,7 +4453,7 @@ static void run_state_machine(struct tcpm_port *port)
> * The specification suggests that dual mode ports in sink
> * mode should transition to state PE_SRC_Transition_to_default.
> * See USB power delivery specification chapter 8.3.3.6.1.3.
> - * This would mean to to
> + * This would mean to
> * - turn off VCONN, reset power supply
> * - request hardware reset
> * - turn on VCONN

2022-07-18 09:15:44

by Heikki Krogerus

[permalink] [raw]
Subject: Re: [PATCH] usb/typec/tcpm: fix repeated words in comments

On Sat, Jul 16, 2022 at 09:56:42PM +0800, Jilin Yuan wrote:
> Delete the redundant word 'to'.
>
> Signed-off-by: Jilin Yuan <[email protected]>

Acked-by: Heikki Krogerus <[email protected]>

> ---
> drivers/usb/typec/tcpm/tcpm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/usb/typec/tcpm/tcpm.c b/drivers/usb/typec/tcpm/tcpm.c
> index 3bc2f4ebd1fe..2d80b5b17ea4 100644
> --- a/drivers/usb/typec/tcpm/tcpm.c
> +++ b/drivers/usb/typec/tcpm/tcpm.c
> @@ -4453,7 +4453,7 @@ static void run_state_machine(struct tcpm_port *port)
> * The specification suggests that dual mode ports in sink
> * mode should transition to state PE_SRC_Transition_to_default.
> * See USB power delivery specification chapter 8.3.3.6.1.3.
> - * This would mean to to
> + * This would mean to
> * - turn off VCONN, reset power supply
> * - request hardware reset
> * - turn on VCONN
> --
> 2.36.1

--
heikki