2022-07-16 13:37:28

by Jilin Yuan

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

Delete the redundant word 'power'.

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

diff --git a/drivers/usb/chipidea/otg_fsm.c b/drivers/usb/chipidea/otg_fsm.c
index 6ed4b00dba96..61b157b9c662 100644
--- a/drivers/usb/chipidea/otg_fsm.c
+++ b/drivers/usb/chipidea/otg_fsm.c
@@ -459,7 +459,7 @@ static void ci_otg_drv_vbus(struct otg_fsm *fsm, int on)
struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm);

if (on) {
- /* Enable power power */
+ /* Enable power */
hw_write(ci, OP_PORTSC, PORTSC_W1C_BITS | PORTSC_PP,
PORTSC_PP);
if (ci->platdata->reg_vbus) {
--
2.36.1


2022-07-27 08:50:40

by Peter Chen

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

On 22-07-16 21:16:30, Jilin Yuan wrote:
> Delete the redundant word 'power'.
>
> Signed-off-by: Jilin Yuan <[email protected]>
> ---
> drivers/usb/chipidea/otg_fsm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/usb/chipidea/otg_fsm.c b/drivers/usb/chipidea/otg_fsm.c
> index 6ed4b00dba96..61b157b9c662 100644
> --- a/drivers/usb/chipidea/otg_fsm.c
> +++ b/drivers/usb/chipidea/otg_fsm.c
> @@ -459,7 +459,7 @@ static void ci_otg_drv_vbus(struct otg_fsm *fsm, int on)
> struct ci_hdrc *ci = container_of(fsm, struct ci_hdrc, fsm);
>
> if (on) {
> - /* Enable power power */
> + /* Enable power */
> hw_write(ci, OP_PORTSC, PORTSC_W1C_BITS | PORTSC_PP,
> PORTSC_PP);
> if (ci->platdata->reg_vbus) {
> --

Acked-by: Peter Chen <[email protected]>

--

Thanks,
Peter Chen