Re: [PATCH v6] staging: iio: adc: ad7816: Use modern IIO attribute macros
From: Andy Shevchenko
Date: Mon Aug 31 2026 - 03:10:07 EST
On Mon, Aug 31, 2026 at 12:09:54AM +0100, Jonathan Cameron wrote:
> On Fri, 28 Aug 2026 03:47:21 +0600
> "Md. Mahmudul Hasan Mabud" <mdmahmudulhasan1511@xxxxxxxxx> wrote:
>
> > Replace the legacy IIO_DEVICE_ATTR() macros with the modern
> > IIO_DEVICE_ATTR_RW() and IIO_DEVICE_ATTR_RO() macros.
> >
> > This includes renaming driver-specific callback functions to
> > standard <name>_show() and <name>_store() formats.
> >
> > Signed-off-by: Md. Mahmudul Hasan Mabud <mdmahmudulhasan1511@xxxxxxxxx>
> > Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
>
> How did we end up even looking at these? This is converting attributes
> that would most likely go away in any attempt to bring this driver out of staging.
> I'd much rather see the major surgery needed than tidying up around the edges.
>
> I'm not particularly keen on any effort being expended in this direction
> without substantially more justification.
Even though, I would consider this as a good cleanup from two perspectives:
- reducing the current code base, id est makes easier to get current state
of affairs
- educating people to use better alternatives (in case that's unavoidable)
in their code
> So as this stands I'm going to ignore this one.
This is fine!
--
With Best Regards,
Andy Shevchenko