Re: [PATCH v2 03/11] iio: adc: ad7266: drop platform data support
From: Jonathan Cameron
Date: Sat Dec 05 2026 - 19:25:58 EST
On Thu, 3 Dec 2026 13:57:18 +0200
Andy Shevchenko <andriy.shevchenko@xxxxxxxxx> wrote:
> On Wed, Dec 02, 2026 at 05:05:35PM +0000, Nuno Sá wrote:
> > There are no in-tree users of struct ad7266_platform_data. Without it,
> > the driver already falls back to a fixed address, differential mode
> > and the 0V - VREF input range.
> >
> > Drop the platform data header and move the range and mode enums into
> > the driver. The code for the address GPIOs, the pseudo differential and
> > single-ended modes and the 0V - 2VREF range is kept so it can be
> > enabled again should someone need it and add firmware properties for
> > it.
>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
>
> ...
>
> > + * The address GPIOs, the other sample modes and the 0V - 2VREF range
>
> Oxford comma?
Definitely not getting into that debate!
Applied as is.
>
> > + * are not configurable yet. Keep the support around in case someone
> > + * needs it and adds firmware properties for it.
>