iio: adc: ad7124: Use separate structures rather than array for chip info
authorDavid Lechner <dlechner@baylibre.com>
Sat, 28 Jun 2025 16:16:51 +0000 (11:16 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 13 Jul 2025 14:36:24 +0000 (15:36 +0100)
commit5eef68d672b777e930df0fef1a970e9aacbce343
tree82e133e32da19b6ee7f0e04eae54ecd0f44aecb4
parentb1a6eac557f3f6f188beb8a7e12de1c66a8d38da
iio: adc: ad7124: Use separate structures rather than array for chip info

Change the ad7124 driver to use individual chip info 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.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/20250628-iio-const-data-5-v1-1-9e56c2f77979@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7124.c