Re: [PATCH v5 5/8] iio: adc: at91_adc: use local struct device pointer in probe
From: Joshua Crofts
Date: Mon Nov 23 2026 - 03:10:02 EST
On 23-Nov-26 8:00, 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.
>
> Signed-off-by: Abdelnasser Hussein <abdelnasserhussein11@xxxxxxxxx>
> ---
Reviewed-by: Joshua Crofts <crofts@xxxxxxxxxx>
--
Kind regards,
Joshua Crofts