Skip to content

Commit 4fe2379

Browse files
Philip Rakitybroonie
authored andcommitted
regulator: add missing defintion regulator_is_supported_voltage
This definition is missing when CONFIG_REGULATOR is not defined. This causes compiler errors when compiling sdhci.c. This can be worked around by adding #ifdef CONFIG_REGULATOR .. #endif but since other definitions are there we have defined the missing definition Signed-off-by: Philip Rakity <prakity@marvell.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
1 parent bf2516c commit 4fe2379

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎include/linux/regulator/consumer.h‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,12 @@ static inline int regulator_get_voltage(struct regulator *regulator)
294294
return -EINVAL;
295295
}
296296

297+
static inline int regulator_is_supported_voltage(struct regulator *regulator,
298+
int min_uV, int max_uV)
299+
{
300+
return 0;
301+
}
302+
297303
static inline int regulator_set_current_limit(struct regulator *regulator,
298304
int min_uA, int max_uA)
299305
{

0 commit comments

Comments
 (0)