Re: [PATCH v3 0/6] iio: use dev_err_probe in probe path for ADI drivers
From: Andy Shevchenko
Date: Fri Feb 27 2026 - 09:50:19 EST
On Fri, Feb 27, 2026 at 11:23:10AM +0000, Miclaus, Antoniu wrote:
> > -----Original Message-----
> > From: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
> > Sent: Wednesday, February 25, 2026 6:15 PM
> > On Wed, Feb 25, 2026 at 05:05:46PM +0200, Antoniu Miclaus wrote:
> > > Changes in v3:
> > > - Squash the struct device variable introduction and dev_err_probe()
> > > conversion into a single patch per driver.
> >
> > Why? Maybe my comment was unclear previous time.
> >
> > The idea is to convert to short dev the only lines that are not being touched
> > by the second (dev_err_probe() conversion) patch.
>
> Sure, so for the function which use dev only for the dev errors I introduce
> the struct device *dev = &spi->dev; in the dev_error_probe patch?
Whenever you use it first, there you introduce it. I believe in this case it
will in the first patch of each driver subseries. Whatever the first patch is.
--
With Best Regards,
Andy Shevchenko