commit | a8b26c2ddc83fab7f582405c468df2cbb9b5348a | [log] [tgz] |
---|---|---|
author | Alexandru Tachici <alexandru.tachici@analog.com> | Mon Nov 18 12:58:07 2019 +0200 |
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | Sat Nov 23 14:25:02 2019 +0000 |
tree | 5965decf989c22d98b96a70932a84c856b799399 | |
parent | 3922f930de9d83fab3dcdc432ac046d79583e430 [diff] |
iio: dac: ad7303: use regulator get optional to check for ext supply Previously, the code was using the of_read_property_bool() to check if an external regulator was provided. However, this is redundant, as it's more simple/direct to just ask the regulator is provided, via a `devm_regulator_get_optional()` call. Signed-off-by: Alexandru Tachici <alexandru.tachici@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>