Skip to content

Commit 2a66044

Browse files
committed
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
2 parents 6c5b3e3 + 1a5caec commit 2a66044

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/linux/regulator/consumer.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,14 @@ static inline int of_regulator_bulk_get_all(struct device *dev, struct device_no
452452
return 0;
453453
}
454454

455+
static inline int devm_regulator_bulk_get_const(
456+
struct device *dev, int num_consumers,
457+
const struct regulator_bulk_data *in_consumers,
458+
struct regulator_bulk_data **out_consumers)
459+
{
460+
return 0;
461+
}
462+
455463
static inline int regulator_bulk_enable(int num_consumers,
456464
struct regulator_bulk_data *consumers)
457465
{

0 commit comments

Comments
 (0)