Re: [PATCH v2 2/8] iio: accel: adxl313: Use dev_err_probe

From: Andy Shevchenko

Date: Fri Apr 17 2026 - 14:36:19 EST


On Fri, Apr 17, 2026 at 06:19:18PM +0530, Sanjay Chitroda wrote:

> dev_err_probe() makes error code handling simpler and handles
> deferred probe nicely (avoid spamming logs).

In the Subject also should be "dev_err_probe()".

...

> + return adxl313_core_probe(dev, regmap,
> chip_data, &adxl313_spi_setup);

Now it may be a single line.

--
With Best Regards,
Andy Shevchenko