]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: adc: ti-ads7950: remove chip_info[]
authorDavid Lechner <dlechner@baylibre.com>
Sat, 7 Mar 2026 21:54:37 +0000 (15:54 -0600)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 14 Mar 2026 12:10:22 +0000 (12:10 +0000)
commitff0843ceb1fb11a6b73e0e77b932ef7967aecd4b
treea7d0ab0cccc37c1a7ea49c97005372c89f4677c9
parentc48012d519fe72fb82786d53930b2b907bf7c10c
iio: adc: ti-ads7950: remove chip_info[]

Remove the chip_info[] array and related enum used for looking up chip-
specific information. Instead, use individual structs directly in the
module device tables.

Also update to use spi_get_device_match_data() in case the devicetree
table is ever used instead of the SPI device ID table.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ti-ads7950.c