]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
iio: dac: ds4424: rename iio_info struct to avoid ambiguity
authorOleksij Rempel <o.rempel@pengutronix.de>
Tue, 10 Feb 2026 13:51:02 +0000 (14:51 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 22 Mar 2026 12:43:22 +0000 (12:43 +0000)
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>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/ds4424.c

index c35becc5498557dde78ffa0aa32c69e3a3fb4379..3a923c53957717abbcdea89d42f014497bca59fc 100644 (file)
@@ -196,7 +196,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,
 };
@@ -251,7 +251,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) {