[PATCH v4 05/13] iio: dac: ds4424: rename iio_info struct to avoid ambiguity

Oleksij Rempel posted 13 patches 6 days, 8 hours ago
There is a newer version of this series
[PATCH v4 05/13] iio: dac: ds4424: rename iio_info struct to avoid ambiguity
Posted by Oleksij Rempel 6 days, 8 hours ago
Rename the static `ds4424_info` structure to `ds4424_iio_info`.

The previous name was generic and could be confused with chip-specific
data structures (like the upcoming `ds4424_chip_info`). The new name
explicitly indicates that this structure holds the IIO framework
callbacks.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
changes v4:
- New patch
---
 drivers/iio/dac/ds4424.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/iio/dac/ds4424.c b/drivers/iio/dac/ds4424.c
index c03051dc763e..3385f39521d9 100644
--- a/drivers/iio/dac/ds4424.c
+++ b/drivers/iio/dac/ds4424.c
@@ -197,7 +197,7 @@ static int ds4424_resume(struct device *dev)
 
 static DEFINE_SIMPLE_DEV_PM_OPS(ds4424_pm_ops, ds4424_suspend, ds4424_resume);
 
-static const struct iio_info ds4424_info = {
+static const struct iio_info ds4424_iio_info = {
 	.read_raw = ds4424_read_raw,
 	.write_raw = ds4424_write_raw,
 };
@@ -252,7 +252,7 @@ static int ds4424_probe(struct i2c_client *client)
 
 	indio_dev->channels = ds4424_channels;
 	indio_dev->modes = INDIO_DIRECT_MODE;
-	indio_dev->info = &ds4424_info;
+	indio_dev->info = &ds4424_iio_info;
 
 	ret = iio_device_register(indio_dev);
 	if (ret < 0) {
-- 
2.47.3
Re: [PATCH v4 05/13] iio: dac: ds4424: rename iio_info struct to avoid ambiguity
Posted by Andy Shevchenko 6 days, 8 hours ago
On Tue, Feb 03, 2026 at 10:34:25AM +0100, Oleksij Rempel wrote:
> Rename the static `ds4424_info` structure to `ds4424_iio_info`.
> 
> The previous name was generic and could be confused with chip-specific
> data structures (like the upcoming `ds4424_chip_info`). The new name
> explicitly indicates that this structure holds the IIO framework
> callbacks.

OK,
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>

-- 
With Best Regards,
Andy Shevchenko