mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
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:
parent
81c0bbfa51
commit
09bfa6acb1
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user