[PATCH v5 5/8] iio: adc: at91_adc: use local struct device pointer in probe
Joshua Crofts
crofts at kernel.org
Mon Nov 23 00:02:54 PST 2026
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 at gmail.com>
> ---
Reviewed-by: Joshua Crofts <crofts at kernel.org>
--
Kind regards,
Joshua Crofts
More information about the linux-arm-kernel
mailing list