Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: adc: ad9467: use spi_get_device_match_data()

Make use of spi_get_device_match_data() to simplify things.

Reviewed-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20231207-iio-backend-prep-v2-5-a4a33bc4d70e@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Nuno Sa and committed by
Jonathan Cameron
b67cc85d b73f08bb

+1 -3
+1 -3
drivers/iio/adc/ad9467.c
··· 454 454 unsigned int id; 455 455 int ret; 456 456 457 - info = of_device_get_match_data(&spi->dev); 458 - if (!info) 459 - info = (void *)spi_get_device_id(spi)->driver_data; 457 + info = spi_get_device_match_data(spi); 460 458 if (!info) 461 459 return -ENODEV; 462 460