linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bartosz Golaszewski <bgolaszewski@baylibre.com>
To: Axel Lin <axel.lin@ingics.com>
Cc: Linus Walleij <linus.walleij@linaro.org>,
	Thor Thayer <thor.thayer@linux.intel.com>,
	linux-gpio <linux-gpio@vger.kernel.org>,
	"Stable # 4 . 20+" <stable@vger.kernel.org>
Subject: Re: [PATCH v3 1/2] gpio: altera-a10sr: Set proper output level for direction_output
Date: Wed, 23 Jan 2019 17:16:31 +0100	[thread overview]
Message-ID: <CAMpxmJXQKvbOMaSBzgr-4bv4fO-ObDwZAjexc84-uHvOB2aj1g@mail.gmail.com> (raw)
In-Reply-To: <20190123000058.28317-1-axel.lin@ingics.com>

śr., 23 sty 2019 o 01:01 Axel Lin <axel.lin@ingics.com> napisał(a):
>
> The altr_a10sr_gpio_direction_output should set proper output level
> based on the value argument.
>
> Fixes: 26a48c4cc2f1 ("gpio: altera-a10sr: Add A10 System Resource Chip GPIO support.")
> Cc: <stable@vger.kernel.org>
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> Tested by: Thor Thayer <thor.thayer@linux.intel.com>
> Reviewed by: Thor Thayer <thor.thayer@linux.intel.com>
> ---
> v3: Add Fixes tag and cc stable
> v2: Based on Bartosz's comment to split the patch.
>     1/2 is bug fix
>     2/2 is coding style fix and fix checkpatch warning
>  drivers/gpio/gpio-altera-a10sr.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpio/gpio-altera-a10sr.c b/drivers/gpio/gpio-altera-a10sr.c
> index 6b11f1314248..7f9e0304b510 100644
> --- a/drivers/gpio/gpio-altera-a10sr.c
> +++ b/drivers/gpio/gpio-altera-a10sr.c
> @@ -66,8 +66,10 @@ static int altr_a10sr_gpio_direction_input(struct gpio_chip *gc,
>  static int altr_a10sr_gpio_direction_output(struct gpio_chip *gc,
>                                             unsigned int nr, int value)
>  {
> -       if (nr <= (ALTR_A10SR_OUT_VALID_RANGE_HI - ALTR_A10SR_LED_VALID_SHIFT))
> +       if (nr <= (ALTR_A10SR_OUT_VALID_RANGE_HI - ALTR_A10SR_LED_VALID_SHIFT)) {
> +               altr_a10sr_gpio_set(gc, nr, value);
>                 return 0;
> +       }
>         return -EINVAL;
>  }
>
> --
> 2.17.1
>

Both applied, thanks!

Bart

      reply	other threads:[~2019-01-23 16:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-23  0:00 [PATCH v3 1/2] gpio: altera-a10sr: Set proper output level for direction_output Axel Lin
2019-01-23 16:16 ` Bartosz Golaszewski [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMpxmJXQKvbOMaSBzgr-4bv4fO-ObDwZAjexc84-uHvOB2aj1g@mail.gmail.com \
    --to=bgolaszewski@baylibre.com \
    --cc=axel.lin@ingics.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=thor.thayer@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).