]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: dac: ad5446: Move to single chip_info structures
authorNuno Sá <nuno.sa@analog.com>
Tue, 4 Nov 2025 15:35:10 +0000 (15:35 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 9 Nov 2025 16:06:10 +0000 (16:06 +0000)
commit45d510a7203f63caa0298e40190b364d4646e2b2
treebb82a99b15bbd88b8451f7c93d65ddc1812164e4
parent14b72d8acea0a5c53dcffacafa43a9090fda3311
iio: dac: ad5446: Move to single chip_info structures

Do not use an array with an enum id kind of thing. Use the more
maintainable chip_info variable per chip.

Adapt the probe functions to use the proper helpers (for SPI and I2c).
Note that in a following patch we'll also add the chip_info variables to
the of_device_id tables. Hence already use the helpers that internally use
device_get_match_data().

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/ad5446.c