Re: [PATCH 0/6] iio: adc: drop platform data from some ADI ADC drivers
From: Arnd Bergmann
Date: Wed Nov 25 2026 - 05:37:17 EST
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!
Acked-by: Arnd Bergmann <arnd@xxxxxxxx>