Re: [PATCH v3 05/10] iio: accel: mma8452: Use dev_err_probe()

Joshua Crofts
2026-05-05T18:45:46Z

On Tue, 5 May 2026 at 19:49, Sanjay Chitroda <sanjayembeddedse@gmail.com> wrote:
>
> From: Sanjay Chitroda <sanjayembeddedse@gmail.com>
>
> dev_err_probe() makes error code handling simpler and handle
> deferred probe nicely (avoid spamming logs).
>
> Signed-off-by: Sanjay Chitroda <sanjayembeddedse@gmail.com>
> ---
> drivers/iio/accel/mma8452.c | 9 ++++-----
> 1 file changed, 4 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/iio/accel/mma8452.c b/drivers/iio/accel/mma8452.c
> index d227ce3d5f67..b49949792190 100644
> --- a/drivers/iio/accel/mma8452.c
> +++ b/drivers/iio/accel/mma8452.c
> @@ -1548,6 +1548,7 @@ MODULE_DEVICE_TABLE(of, mma8452_dt_ids);
>
> static int mma8452_probe(struct i2c_client *client)
> {
> + struct device *dev = &client->dev;

Stray change, I assume this belongs to patch 7 ("use local struct device") of
your series.

--
Kind regards

CJD