]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: dac: ad5446: Don't ignore missing regulator
authorNuno Sá <nuno.sa@analog.com>
Tue, 4 Nov 2025 15:35:09 +0000 (15:35 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 9 Nov 2025 16:04:52 +0000 (16:04 +0000)
commit14b72d8acea0a5c53dcffacafa43a9090fda3311
treee47a522e8786aad370b2c2016ca2113f43b97320
parent63232c9b5413bf398f62425266dfacaa321564c9
iio: dac: ad5446: Don't ignore missing regulator

If the chip does not have an internal reference, do not ignore a missing
regulator as we won't be able to actually provide a proper scale for the
DAC. Since it's now seen as an error, flip the if() logic so errors are
treated first (which is the typical pattern).

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