Re: [PATCH v5 5/8] iio: adc: at91_adc: use local struct device pointer in probe
From: Andy Shevchenko
Date: Mon Nov 23 2026 - 05:04:08 EST
On Mon, Nov 23, 2026 at 09:00:58AM +0200, Abdelnasser Hussein wrote:
> Introduce a local struct device pointer in at91_adc_probe() and use it
> in place of &pdev->dev and &idev->dev throughout the function.
>
> Also switch devm_iio_device_alloc() to use sizeof(*st) instead of
> spelling out the full private structure type.
>
> This is a preparatory cleanup to reduce the diff noise of the upcoming
> conversion to device-managed resources.
>
> As a result, messages previously logged against the IIO device are now
> printed using the platform device being probed.
Yes, but part of that may be already done in the previous patch as you touched
the very same lines. Here should be just a residue (of what has not been touched
by previous changes).
--
With Best Regards,
Andy Shevchenko