[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aJyYJLMUYAm_uqUx@smile.fi.intel.com>
Date: Wed, 13 Aug 2025 16:50:28 +0300
From: Andy Shevchenko <andriy.shevchenko@...el.com>
To: Akshay Jindal <akshayaj.lkd@...il.com>
Cc: anshulusr@...il.com, jic23@...nel.org, dlechner@...libre.com,
nuno.sa@...log.com, andy@...nel.org, shuah@...nel.org,
linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] iio: light: ltr390: Add device powerdown
functionality via devm api
On Wed, Aug 13, 2025 at 07:00:14PM +0530, Akshay Jindal wrote:
> Use devm_add_action_or_reset() to do cleanup when the device is removed.
> Set client data with i2c_set_clientdata().
This is not used anymore, correct?
...
> - data = iio_priv(indio_dev);
> + i2c_set_clientdata(client, indio_dev);
>
> + data = iio_priv(indio_dev);
> data->regmap = devm_regmap_init_i2c(client, <r390_regmap_config);
> if (IS_ERR(data->regmap))
> return dev_err_probe(dev, PTR_ERR(data->regmap),
So this hunk needs to be removed from the patch.
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists