Re: [PATCH v1 1/1] iio: adc: ad7192: Revert "properly check spi_get_device_match_data()"

From: Andy Shevchenko

Date: Wed Feb 18 2026 - 04:40:39 EST


On Wed, Feb 18, 2026 at 09:12:03AM +0000, Nuno Sá wrote:
> On Tue, 2026-02-17 at 17:06 +0200, Andy Shevchenko wrote:
> > On Tue, Feb 17, 2026 at 01:47:59PM +0000, Nuno Sá wrote:
> > > On Tue, 2026-02-17 at 09:05 +0100, Andy Shevchenko wrote:

...

> > > I'm ok with this but as long as we get some consistency agreed on. So far,
> > > IIRC, the policy was to check for the NULL case even for the cases where that
> > > was not possible to happen.
> >
> > Is it kernel-wide policy?
>
> Nope... Just IIO IIRC. Actually, I'm pretty sure we had patches in the past
> just adding the check.

Like you said we need clearer policy.

> But again, I'm fine with the above as long as we are consistent from now on.

Exactly!
Jonathan, David, others?

--
With Best Regards,
Andy Shevchenko