aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDavid Lechner <dlechner@baylibre.com>2024-04-29 18:40:12 -0500
committerMark Brown <broonie@kernel.org>2024-05-07 10:31:49 +0900
commit41b94bc6d96b9b046ef08114f057dcc6c52e28b6 (patch)
tree3e926cc8718270c1fe2c89dabdfda3d5e615ed42 /tools/perf/scripts/python
parent346fe0ce1fd780038ca9e5bcb65aad54bae7c4d9 (diff)
iio: addac: ad74115: Use devm_regulator_get_enable_read_voltage()
We can reduce boilerplate code by using devm_regulator_get_enable_read_voltage(). To maintain backwards compatibility in the case a DT does not provide an avdd-supply, we fall back to calling devm_regulator_get_enable() so that there is no change in user-facing behavior (e.g. dummy regulator will still be in sysfs). Also add an informative error message when we failed to get the voltage and knowing the voltage is required while we are touching this. Signed-off-by: David Lechner <dlechner@baylibre.com> Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Link: https://lore.kernel.org/r/20240429-regulator-get-enable-get-votlage-v2-4-b1f11ab766c1@baylibre.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions