Re: [PATCH v4 3/8] iio: adc: ti-ads1015: use local device pointer in probe

From: Andy Shevchenko

Date: Thu Aug 27 2026 - 14:58:18 EST


On Thu, Aug 27, 2026 at 10:50:55PM +0530, Archit Anant wrote:
> Introduce a local device pointer 'dev' in ads1015_probe to

ads1015_probe()

> avoid accessing &client->dev repeatedly.

...

> chip = i2c_get_match_data(client);
> if (!chip)
> - return dev_err_probe(&client->dev, -EINVAL, "Unknown chip\n");
> + return dev_err_probe(dev, -EINVAL, "Unknown chip\n");

Please, add a patch that converts EINVAL to ENODATA here.

--
With Best Regards,
Andy Shevchenko