Re: [PATCH v5 03/10] iio: adc: ti-ads1015: return -ENODATA when match data is missing

From: Andy Shevchenko

Date: Thu Oct 01 2026 - 13:47:47 EST


On Wed, Sep 30, 2026 at 10:41:57PM +0530, Archit Anant wrote:
> When i2c_get_match_data() returns NULL, it indicates that driver match
> data is absent rather than an invalid argument being provided.
>
> Return -ENODATA instead of -EINVAL to more accurately reflect the failure.

If you arrange this patch after the next one, you may reduce the churn by
switching to local 'dev' variable at the same time. It might be even not
needed to describe as it's just a small detail that doesn't change anything
in the behaviour of the code.

But no need to resend just for that.

--
With Best Regards,
Andy Shevchenko