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

Andy Shevchenko
2026-05-06T09:22:27Z

On Tue, May 05, 2026 at 08:45:32PM +0200, Joshua Crofts wrote:
> On Tue, 5 May 2026 at 19:49, Sanjay Chitroda <sanjayembeddedse@gmail.com> wrote:

...

> > 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.

Not really. It switches to dev_err_probe() that uses it.

--
With Best Regards,
Andy Shevchenko