diff options
author | David Lechner <dlechner@baylibre.com> | 2024-06-22 01:11:52 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-06-25 23:04:51 +0300 |
commit | 890582c2a496d71aab53b3ff39fba1fd05fe9230 (patch) | |
tree | 64d51e314477dcafa4e23fcf9dbdde25b9741a1f /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 95e17a54e4eb63f722be70c6488cf377cae8afc6 (diff) | |
download | linux-890582c2a496d71aab53b3ff39fba1fd05fe9230.tar.xz |
iio: adc: ltc2309: use devm_regulator_get_enable_read_voltage()
Use devm_regulator_get_enable_read_voltage() to simplify the code.
Error message is changed since there is only one error return now.
LTC2309_INTERNAL_REF_MV macro is added to make the internal reference
voltage value self-documenting.
Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20240621-iio-regulator-refactor-round-2-v1-5-49e50cd0b99a@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions