[PATCH v5 2/2] iio: adc: add Axiado SARADC driver
Joshua Crofts
joshua.crofts1 at gmail.com
Mon Aug 17 04:56:10 PDT 2026
On Mon, 10 Aug 2026 21:27:26 +0300
Andy Shevchenko <andriy.shevchenko at intel.com> wrote:
>
> > + soc_data = device_get_match_data(dev);
> > + if (!soc_data)
> > + return dev_err_probe(dev, -EINVAL, "failed to get match data\n");
>
> -ENODATA
Hmmm, I always thought it should be -ENODEV. (`grep -Rb5a5 "device_get_match_data"
drivers/iio/` confirms this, but maybe it's just wrong to begin with, a few
instances even have checks missing).
--
Kind regards,
Joshua Crofts
More information about the linux-arm-kernel
mailing list