summaryrefslogtreecommitdiff
path: root/drivers/regulator/internal.h
diff options
context:
space:
mode:
authorZev Weiss <zev@bewilderbeest.net>2022-10-31 16:37:02 -0700
committerMark Brown <broonie@kernel.org>2022-11-03 13:34:53 +0000
commitfd1845069711cdf1b1aaaa0f22311b7736396331 (patch)
tree344dc39c08c9a16702a2c585aa4fd83b38ed7f4a /drivers/regulator/internal.h
parent9abf2313adc1ca1b6180c508c25f22f9395cc780 (diff)
downloadlwn-fd1845069711cdf1b1aaaa0f22311b7736396331.tar.gz
lwn-fd1845069711cdf1b1aaaa0f22311b7736396331.zip
regulator: devres: Add devm_regulator_bulk_get_exclusive()
We had an exclusive variant of the devm_regulator_get() API, but no corresponding variant for the bulk API; let's add one now. We add a generalized version of the existing regulator_bulk_get() function that additionally takes a get_type parameter and redefine regulator_bulk_get() in terms of it, then do similarly with devm_regulator_bulk_get(), and finally add the new devm_regulator_bulk_get_exclusive(). Signed-off-by: Zev Weiss <zev@bewilderbeest.net> Link: https://lore.kernel.org/r/20221031233704.22575-2-zev@bewilderbeest.net Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/internal.h')
-rw-r--r--drivers/regulator/internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/regulator/internal.h b/drivers/regulator/internal.h
index 1e9c71642143..fb4433068d29 100644
--- a/drivers/regulator/internal.h
+++ b/drivers/regulator/internal.h
@@ -122,4 +122,6 @@ enum regulator_get_type {
struct regulator *_regulator_get(struct device *dev, const char *id,
enum regulator_get_type get_type);
+int _regulator_bulk_get(struct device *dev, int num_consumers,
+ struct regulator_bulk_data *consumers, enum regulator_get_type get_type);
#endif