diff options
| author | Nuno Sa <nuno.sa@analog.com> | 2024-10-16 16:22:00 +0200 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-10-21 19:19:25 +0100 |
| commit | ab9795c197acc21a1a9156599c8b6ace31baec0e (patch) | |
| tree | 97bdc638af9fe5b68a45bb5c6ac137b29b10b4a6 /tools/lib/python/kdoc/python_version.py | |
| parent | e902145064ecdfa10935131fd427c4d455cf908f (diff) | |
| download | linux-ab9795c197acc21a1a9156599c8b6ace31baec0e.tar.gz linux-ab9795c197acc21a1a9156599c8b6ace31baec0e.zip | |
iio: addac: ad74413r: use devm_regulator_get_enable_read_voltage()
It's highly unlikely for the converter ref voltage to change at runtime.
Hence, let's read the voltage and save it (instead of the regulator
struct). While at it, simplify the code by using
devm_regulator_get_enable_read_voltage().
Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20241016-dev-ad74413r-minor-improv-v1-2-13c9c769237d@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
