]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: adc: ti-adc081c: use individual model structures instead of array
authorDavid Lechner <dlechner@baylibre.com>
Mon, 21 Jul 2025 22:12:47 +0000 (17:12 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 16 Aug 2025 10:57:05 +0000 (11:57 +0100)
commit972b1d5dee9eaa31ec8c20cfbea369f30bab416b
tree570e24acb0e78f7b4db81ec1b23acc9321197199
parent97b262d24ae28b1e86586a927c8be9df9747fb56
iio: adc: ti-adc081c: use individual model structures instead of array

Change the ti-adc081c driver to use individual model structures instead
of an array. This reduces the verbosity of the code. Also, the data is
now const as it should have been in the first place. The ADCxx1C_MODEL()
macro is dropped to be consistent with similar model definitions in
other drivers.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://patch.msgid.link/20250721-iio-const-data-11-v2-1-c3fec12511ee@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ti-adc081c.c