Message ID | 20231205-iio-backend-prep-v1-5-7c9bc18d612b@analog.com (mailing list archive) |
---|---|
State | Changes Requested |
Headers | show |
Series | iio: ad9467 and axi-adc cleanups | expand |
On Tue, Dec 5, 2023 at 11:06 AM Nuno Sa via B4 Relay <devnull+nuno.sa.analog.com@kernel.org> wrote: > > From: Nuno Sa <nuno.sa@analog.com> > > Make use of spi_get_device_match_data() to simplify things. > > Signed-off-by: Nuno Sa <nuno.sa@analog.com> > --- Reviewed-by: David Lechner <dlechner@baylibre.com>
diff --git a/drivers/iio/adc/ad9467.c b/drivers/iio/adc/ad9467.c index 3c8bd6c821a4..6bdbd0ea8d6c 100644 --- a/drivers/iio/adc/ad9467.c +++ b/drivers/iio/adc/ad9467.c @@ -456,9 +456,7 @@ static int ad9467_probe(struct spi_device *spi) unsigned int id; int ret; - info = of_device_get_match_data(&spi->dev); - if (!info) - info = (void *)spi_get_device_id(spi)->driver_data; + info = spi_get_device_match_data(spi); if (!info) return -ENODEV;