diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-09-05 16:41:16 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-09-05 16:41:16 -0700 |
commit | 2a66044754a7b1f2784031f679fb25ba465595b2 (patch) | |
tree | 5d3c07696037832386c6ab49d83c35068f521dcb /include | |
parent | 6c5b3e30e5854f121d2e2cbb2d5ff7350ef7fdfb (diff) | |
parent | 1a5caec7f80ca2e659c03f45378ee26915f4eda2 (diff) | |
download | linux-stable-2a66044754a7b1f2784031f679fb25ba465595b2.tar.gz linux-stable-2a66044754a7b1f2784031f679fb25ba465595b2.tar.bz2 linux-stable-2a66044754a7b1f2784031f679fb25ba465595b2.zip |
Merge tag 'regulator-fix-v6.11-stub' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
Pull regulator fix from Mark Brown:
"A fix from Doug Anderson for a missing stub, required to fix the build
for some newly added users of devm_regulator_bulk_get_const() in
!REGULATOR configurations"
* tag 'regulator-fix-v6.11-stub' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
regulator: core: Stub devm_regulator_bulk_get_const() if !CONFIG_REGULATOR
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/regulator/consumer.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h index d986ec13092e..b9ce521910a0 100644 --- a/include/linux/regulator/consumer.h +++ b/include/linux/regulator/consumer.h @@ -452,6 +452,14 @@ static inline int of_regulator_bulk_get_all(struct device *dev, struct device_no return 0; } +static inline int devm_regulator_bulk_get_const( + struct device *dev, int num_consumers, + const struct regulator_bulk_data *in_consumers, + struct regulator_bulk_data **out_consumers) +{ + return 0; +} + static inline int regulator_bulk_enable(int num_consumers, struct regulator_bulk_data *consumers) { |