Re: [PATCH v5 05/10] iio: adc: ti-ads1015: use dev_err_probe() for error handling

From: Joshua Crofts

Date: Thu Oct 01 2026 - 03:12:18 EST


On Wed, 30 Sep 2026 22:41:59 +0530
Archit Anant <architanant5@xxxxxxxxx> wrote:

> Simplify the error handling paths in ads1015_probe() and
> ads1015_client_get_channels_config() by converting dev_err()
> calls that are immediately followed by a return statement
> over to the modern dev_err_probe() helper.
>
> Note: This patch takes advantage of the previously introduced
> local 'dev' pointer when converting the legacy
> dev_err(&client->dev, ...) calls, avoiding unnecessary
> code churn.

This paragraph should be removed, no need to mention this.

--
Kind regards,
Joshua Crofts