Re: [PATCH v6 3/8] iio: adc: at91_adc: switch to device_get_match_data()

From: Andy Shevchenko

Date: Thu Dec 03 2026 - 12:55:33 EST


On Thu, Dec 03, 2026 at 07:30:07PM +0200, Abdelnasser Hussein wrote:
> Replace of_device_get_match_data() with device_get_match_data() and
> reject a missing match with -ENODATA instead of deferring the failure to
> the first st->caps dereference.

Why?

It looks like a driver is going to use unified device property APIs. Perhaps
that's the reason why this change?

--
With Best Regards,
Andy Shevchenko