2021-12-12 03:13:55

by Jason Wang

[permalink] [raw]
Subject: [PATCH] gpio: sta2x11: fix typo in a comment

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

Signed-off-by: Jason Wang <[email protected]>
---
drivers/gpio/gpio-sta2x11.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-sta2x11.c b/drivers/gpio/gpio-sta2x11.c
index 392fcab06ab8..e07cca0f8d35 100644
--- a/drivers/gpio/gpio-sta2x11.c
+++ b/drivers/gpio/gpio-sta2x11.c
@@ -324,7 +324,7 @@ static int gsta_alloc_irq_chip(struct gsta_gpio *chip)
if (rv)
return rv;

- /* Set up all all 128 interrupts: code from setup_generic_chip */
+ /* Set up all 128 interrupts: code from setup_generic_chip */
{
struct irq_chip_type *ct = gc->chip_types;
int i, j;
--
2.34.1



2021-12-13 13:48:21

by Bartosz Golaszewski

[permalink] [raw]
Subject: Re: [PATCH] gpio: sta2x11: fix typo in a comment

On Sun, Dec 12, 2021 at 4:13 AM Jason Wang <[email protected]> wrote:
>
> The double `all' in the comment in line 327 is repeated. Remove one
> of them from the comment.
>
> Signed-off-by: Jason Wang <[email protected]>
> ---
> drivers/gpio/gpio-sta2x11.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpio/gpio-sta2x11.c b/drivers/gpio/gpio-sta2x11.c
> index 392fcab06ab8..e07cca0f8d35 100644
> --- a/drivers/gpio/gpio-sta2x11.c
> +++ b/drivers/gpio/gpio-sta2x11.c
> @@ -324,7 +324,7 @@ static int gsta_alloc_irq_chip(struct gsta_gpio *chip)
> if (rv)
> return rv;
>
> - /* Set up all all 128 interrupts: code from setup_generic_chip */
> + /* Set up all 128 interrupts: code from setup_generic_chip */
> {
> struct irq_chip_type *ct = gc->chip_types;
> int i, j;
> --
> 2.34.1
>

Applied, thanks!

Bart