iio: frequency: ad9523: Simplify driver a bit

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@baylibre.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
Uwe Kleine-König (The Capable Hub) 2026-06-19 17:54:34 +02:00 committed by Jonathan Cameron
parent 81c0bbfa51
commit 09bfa6acb1

View File

@ -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);