Re: [PATCH v2 2/8] iio: accel: adxl313: Use dev_err_probe
From: Sanjay Chitroda
Date: Fri Apr 17 2026 - 14:47:50 EST
On 18 April 2026 12:05:59 am IST, Andy Shevchenko <andriy.shevchenko@xxxxxxxxx> wrote:
>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()".
>
Thank you for your input.
I agree, will rectify the same in next series/update.
>...
>
>> + return adxl313_core_probe(dev, regmap,
>> chip_data, &adxl313_spi_setup);
>
>Now it may be a single line.
>
It was the single line, length is reduced.
dev_err() was multi line in few driver; however with your input on dev dev_err_probe(dev, ...) become single line.