All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gpio: sch: fix typo in a comment
@ 2021-12-12  3:11 Jason Wang
  2021-12-13 11:28 ` Andy Shevchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Jason Wang @ 2021-12-12  3:11 UTC (permalink / raw)
  To: linus.walleij; +Cc: andy, brgl, linux-gpio, linux-kernel, Jason Wang

The double `the' in the comment in line 142 is repeated. Remove one
of them from the comment.

Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
---
 drivers/gpio/gpio-sch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-sch.c b/drivers/gpio/gpio-sch.c
index 0600f71462b5..acda4c5052d3 100644
--- a/drivers/gpio/gpio-sch.c
+++ b/drivers/gpio/gpio-sch.c
@@ -139,7 +139,7 @@ static int sch_gpio_direction_out(struct gpio_chip *gc, unsigned int gpio_num,
 	/*
 	 * according to the datasheet, writing to the level register has no
 	 * effect when GPIO is programmed as input.
-	 * Actually the the level register is read-only when configured as input.
+	 * Actually the level register is read-only when configured as input.
 	 * Thus presetting the output level before switching to output is _NOT_ possible.
 	 * Hence we set the level after configuring the GPIO as output.
 	 * But we cannot prevent a short low pulse if direction is set to high
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] gpio: sch: fix typo in a comment
  2021-12-12  3:11 [PATCH] gpio: sch: fix typo in a comment Jason Wang
@ 2021-12-13 11:28 ` Andy Shevchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Shevchenko @ 2021-12-13 11:28 UTC (permalink / raw)
  To: Jason Wang; +Cc: linus.walleij, andy, brgl, linux-gpio, linux-kernel

On Sun, Dec 12, 2021 at 11:11:08AM +0800, Jason Wang wrote:
> The double `the' in the comment in line 142 is repeated. Remove one
> of them from the comment.

Pushed to my review and testing queue, thanks!

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-13 11:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-12  3:11 [PATCH] gpio: sch: fix typo in a comment Jason Wang
2021-12-13 11:28 ` Andy Shevchenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.