[PATCH v1 06/13] iio: frequency: ad9523: Simplify driver a bit

From: Uwe Kleine-König (The Capable Hub)

Date: Fri Jun 19 2026 - 12:10:16 EST


spi driver data is only set but never used, so the assignment can be
dropped. Also the spi id_table's .driver_data is unused and can be
dropped.

While touching the spi id_table modify it to use a named initializer.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@xxxxxxxxxxxx>
---
drivers/iio/frequency/ad9523.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/iio/frequency/ad9523.c b/drivers/iio/frequency/ad9523.c
index ea4d2763564a..1e393f40a8c8 100644
--- a/drivers/iio/frequency/ad9523.c
+++ b/drivers/iio/frequency/ad9523.c
@@ -990,7 +990,6 @@ static int ad9523_probe(struct spi_device *spi)
if (IS_ERR(st->sync_gpio))
return PTR_ERR(st->sync_gpio);

- spi_set_drvdata(spi, indio_dev);
st->spi = spi;
st->pdata = pdata;

@@ -1009,7 +1008,7 @@ static int ad9523_probe(struct spi_device *spi)
}

static const struct spi_device_id ad9523_id[] = {
- {"ad9523-1", 9523},
+ { .name = "ad9523-1" },
{ }
};
MODULE_DEVICE_TABLE(spi, ad9523_id);
--
2.47.3