From: Jacek Anaszewski <jacek.anaszewski@gmail.com>
To: Linus Walleij <linus.walleij@linaro.org>,
Pavel Machek <pavel@ucw.cz>, Dan Murphy <dmurphy@ti.com>
Cc: linux-leds@vger.kernel.org, Ben Dooks <ben-linux@fluff.org>,
Sylwester Nawrocki <sylvester.nawrocki@gmail.com>,
Krzysztof Kozlowski <krzk@kernel.org>
Subject: Re: [PATCH v2] leds: s3c24xx: Convert to use GPIO descriptors
Date: Wed, 8 Jul 2020 22:08:58 +0200 [thread overview]
Message-ID: <70bc78d5-c4b1-cc4e-9f5b-04acefff0b7a@gmail.com> (raw)
In-Reply-To: <20200708071149.770334-1-linus.walleij@linaro.org>
Hi Linus,
Thanks for addressing the remarks.
On 7/8/20 9:11 AM, Linus Walleij wrote:
> This converts the s3c24xx LED driver to use GPIO descriptors
> and also modify all board files to account for these changes
> by registering the appropriate GPIO tables for each board.
>
> The driver was using a custom flag to indicate open drain
> (tristate) but this can be handled by standard descriptor
> machine tables.
>
> The driver was setting non-pull-up for the pin using the custom
> S3C24xx GPIO API, but this is a custom pin control system used
> by the S3C24xx and no generic GPIO function, so this has simply
> been pushed back into the respective board files.
>
> Cc: Ben Dooks <ben-linux@fluff.org>
> Cc: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
> Cc: Krzysztof Kozlowski <krzk@kernel.org>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> ChangeLog v1->v2:
> - Fix two GPIO lookups in the smdk-common.c
> - Rename the lookup table for the backlight LED in the
> Mini2440 to feature the name "backlight"
> - Simplify the logical operation in s3c24xx_led_set() to
> use boolean clamping with !!value.
> ---
> arch/arm/mach-s3c24xx/common-smdk.c | 67 +++++++++++++++-------
> arch/arm/mach-s3c24xx/mach-mini2440.c | 63 +++++++++++++++++---
> arch/arm/mach-s3c24xx/mach-n30.c | 54 +++++++++++++++--
> arch/arm/mach-s3c24xx/mach-qt2410.c | 12 +++-
> arch/arm/mach-s3c24xx/mach-vr1000.c | 38 +++++++++++-
> drivers/leds/leds-s3c24xx.c | 36 +++---------
> include/linux/platform_data/leds-s3c24xx.h | 6 --
> 7 files changed, 199 insertions(+), 77 deletions(-)
Acked-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
--
Best regards,
Jacek Anaszewski
next prev parent reply other threads:[~2020-07-08 20:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-08 7:11 [PATCH v2] leds: s3c24xx: Convert to use GPIO descriptors Linus Walleij
2020-07-08 20:08 ` Jacek Anaszewski [this message]
2020-07-09 7:58 ` Krzysztof Kozlowski
2020-07-12 7:20 ` Pavel Machek
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=70bc78d5-c4b1-cc4e-9f5b-04acefff0b7a@gmail.com \
--to=jacek.anaszewski@gmail.com \
--cc=ben-linux@fluff.org \
--cc=dmurphy@ti.com \
--cc=krzk@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-leds@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=sylvester.nawrocki@gmail.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).