iio: adc: ad9467: use chip_info variables instead of array
authorNuno Sa <nuno.sa@analog.com>
Thu, 7 Dec 2023 12:39:29 +0000 (13:39 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 10 Dec 2023 11:41:00 +0000 (11:41 +0000)
commit6dd3fa9fcc66cb71834dc2e0a222324af0d8b95d
tree787116a88dc133a7a8eecb0e54eaaa33bfad9f28
parentb67cc85d45d5d2894d0e2812bba27d7b23befbe6
iio: adc: ad9467: use chip_info variables instead of array

Instead of having an array and keeping IDs for each entry of the array,
just have a chip_info struct per device.

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-6-a4a33bc4d70e@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad9467.c