summaryrefslogtreecommitdiffstats
path: root/Documentation/driver-api
diff options
context:
space:
mode:
authorDavid Lechner <dlechner@baylibre.com>2024-04-29 18:40:09 -0500
committerMark Brown <broonie@kernel.org>2024-05-03 11:08:12 +0900
commitb250c20b64290808aa4b5cc6d68819a7ee28237f (patch)
tree95f6ddc9481edc67258cf16f10392324d495f13f /Documentation/driver-api
parentfec50db7033ea478773b159e0e2efb135270e3b7 (diff)
downloadlinux-stable-b250c20b64290808aa4b5cc6d68819a7ee28237f.tar.gz
linux-stable-b250c20b64290808aa4b5cc6d68819a7ee28237f.tar.bz2
linux-stable-b250c20b64290808aa4b5cc6d68819a7ee28237f.zip
regulator: devres: add API for reference voltage supplies
A common use case for regulators is to supply a reference voltage to an analog input or output device. This adds a new devres API to get, enable, and get the voltage in a single call. This allows eliminating boilerplate code in drivers that use reference supplies in this way. Signed-off-by: David Lechner <dlechner@baylibre.com> Link: https://lore.kernel.org/r/20240429-regulator-get-enable-get-votlage-v2-1-b1f11ab766c1@baylibre.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation/driver-api')
-rw-r--r--Documentation/driver-api/driver-model/devres.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Documentation/driver-api/driver-model/devres.rst b/Documentation/driver-api/driver-model/devres.rst
index 7be8b8dd5f00..18caebad7376 100644
--- a/Documentation/driver-api/driver-model/devres.rst
+++ b/Documentation/driver-api/driver-model/devres.rst
@@ -433,6 +433,7 @@ REGULATOR
devm_regulator_bulk_put()
devm_regulator_get()
devm_regulator_get_enable()
+ devm_regulator_get_enable_read_voltage()
devm_regulator_get_enable_optional()
devm_regulator_get_exclusive()
devm_regulator_get_optional()