regulator: devres: Add devm_regulator_bulk_get_exclusive()
authorZev Weiss <zev@bewilderbeest.net>
Mon, 31 Oct 2022 23:37:02 +0000 (16:37 -0700)
committerMark Brown <broonie@kernel.org>
Thu, 3 Nov 2022 13:34:53 +0000 (13:34 +0000)
commitfd1845069711cdf1b1aaaa0f22311b7736396331
tree344dc39c08c9a16702a2c585aa4fd83b38ed7f4a
parent9abf2313adc1ca1b6180c508c25f22f9395cc780
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>
drivers/regulator/core.c
drivers/regulator/devres.c
drivers/regulator/internal.h
include/linux/regulator/consumer.h