The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: "Nuno Sá" <nuno.sa@analog.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
	devicetree@vger.kernel.org, linux@analog.com,
	Michael Hennerich <Michael.Hennerich@analog.com>,
	Jonathan Cameron <jic23@kernel.org>,
	David Lechner <dlechner@baylibre.com>,
	Andy Shevchenko <andy@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>
Subject: Re: [PATCH 0/6] iio: adc: drop platform data from some ADI ADC drivers
Date: Wed, 25 Nov 2026 11:01:48 +0000	[thread overview]
Message-ID: <awa_4SxQpDZXOaO8@nsa> (raw)
In-Reply-To: <f18b118e-9c5e-4cd8-8466-bb3852a80e56@app.fastmail.com>

On Wed, Nov 25, 2026 at 11:36:02AM +0100, Arnd Bergmann wrote:
> On Wed, Nov 25, 2026, at 11:19, Nuno Sá wrote:
> > The ad7266, ad7887, ad7791 and ad7793 drivers can still only be
> > configured through platform data headers, and nothing in tree uses them
> > anymore. This series removes them.
> 
> As far as I can tell, there have never been any upstream users
> of the platform data for any of these drivers.
> 
> > The ad7266, ad7887 and ad7791 drivers already work without platform
> > data, so the headers are just dropped and the drivers keep the
> > configuration they use today when no platform data is given. The
> > ad7793 driver refuses to probe without platform data, so it gets a
> > binding and firmware properties instead.
> >
> > Patch 1 fixes an issue in ad7887 found while looking at the driver: the
> > on-chip reference gets disabled exactly when the driver relies on it.
> >
> > For ad7266 and ad7887, the code for the modes that could only be
> > selected through platform data (address GPIOs, other sample modes and
> > input range on ad7266, dual channel mode on ad7887) is kept, so that
> > someone needing it can easily add firmware properties for it. I'm likely
> > being optimistic and odds are it will be just dead code so I'm glad to
> > drop all of it if that's the feedback I get.
> 
> The patches all look good to me, thanks for cleaning these up!

Sure! For IIO the one missing is ad9523 and that one we still internally
have users for it and deserves a series of it's own. Will try to send it
by the end of the week.

- Nuno Sá

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

      reply	other threads:[~2026-11-25 11:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 10:19 [PATCH 0/6] iio: adc: drop platform data from some ADI ADC drivers Nuno Sá
2026-11-25 10:19 ` [PATCH 1/6] iio: adc: ad7887: fix on-chip reference enable logic Nuno Sá
2026-11-25 10:19 ` [PATCH 2/6] iio: adc: ad7887: drop platform data support Nuno Sá
2026-11-25 10:19 ` [PATCH 3/6] iio: adc: ad7266: " Nuno Sá
2026-11-25 10:19 ` [PATCH 4/6] iio: adc: ad7791: " Nuno Sá
2026-11-25 10:40   ` Andy Shevchenko
2026-11-25 10:19 ` [PATCH 5/6] dt-bindings: iio: adc: add AD7793 and similar ADCs Nuno Sá
2026-11-25 10:19 ` [PATCH 6/6] iio: adc: ad7793: add firmware support and drop platform data Nuno Sá
2026-11-25 10:43   ` Andy Shevchenko
2026-11-25 11:11     ` Nuno Sá
2026-11-25 10:36 ` [PATCH 0/6] iio: adc: drop platform data from some ADI ADC drivers Arnd Bergmann
2026-11-25 11:01   ` Nuno Sá [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=awa_4SxQpDZXOaO8@nsa \
    --to=nuno.sa@analog.com \
    --cc=Michael.Hennerich@analog.com \
    --cc=andy@kernel.org \
    --cc=arnd@arndb.de \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dlechner@baylibre.com \
    --cc=jic23@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@analog.com \
    --cc=robh@kernel.org \
    /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