All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Jean Delvare <jdelvare@suse.com>,
	Guenter Roeck <linux@roeck-us.net>,
	Jonathan Cameron <jic23@cam.ac.uk>,
	linux-hwmon@vger.kernel.org, arm-soc <arm@kernel.org>,
	Davide Hug <d@videhug.ch>
Subject: Re: [PATCH] hwmon/sht15: Root out platform data
Date: Thu, 19 Oct 2017 17:49:34 +0200	[thread overview]
Message-ID: <CAK8P3a2Vv2LwmuUYV7NPgFj6aVyLRGLcdLPR29BCnM0FgwXgiw@mail.gmail.com> (raw)
In-Reply-To: <20170908223706.18412-1-linus.walleij@linaro.org>

On Sat, Sep 9, 2017 at 12:37 AM, Linus Walleij <linus.walleij@linaro.org> wrote:
> After finding out there are active users of this sensor I noticed:
>
> - It has a single PXA27x board file using the platform data
> - The platform data is only used to carry two GPIO pins, all other
>   fields are unused
> - The driver does not use GPIO descriptors but the legacy GPIO
>   API
>
> I saw we can swiftly fix this by:
>
> - Killing off the platform data entirely
> - Define a GPIO descriptor lookup table in the board file
> - Use the standard devm_gpiod_get() to grab the GPIO descriptors
>   from either the device tree or the board file table.
>
> This compiles, but needs testing.
>
> Cc: arm@kernel.org
> Cc: Davide Hug <d@videhug.ch>
> Cc: Jonathan Cameron <jic23@cam.ac.uk>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> ARM SoC folks: please ACK this so the HWMON maintainer can merge
> it when it is in reasonable shape.

Acked-by: Arnd Bergmann <arnd@arndb.de>

      parent reply	other threads:[~2017-10-19 15:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-08 22:37 [PATCH] hwmon/sht15: Root out platform data Linus Walleij
2017-09-09 14:07 ` Guenter Roeck
2017-09-09 15:02 ` Fabio Estevam
2017-10-19 15:49 ` Arnd Bergmann [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=CAK8P3a2Vv2LwmuUYV7NPgFj6aVyLRGLcdLPR29BCnM0FgwXgiw@mail.gmail.com \
    --to=arnd@arndb.de \
    --cc=arm@kernel.org \
    --cc=d@videhug.ch \
    --cc=jdelvare@suse.com \
    --cc=jic23@cam.ac.uk \
    --cc=linus.walleij@linaro.org \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux@roeck-us.net \
    /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 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.