Skip to content

Commit

Permalink
regulator: add missing defintion regulator_is_supported_voltage
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Philip Rakity authored and Mark Brown committed Jul 1, 2012
1 parent bf2516c commit 4fe2379
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/linux/regulator/consumer.h
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,12 @@ static inline int regulator_get_voltage(struct regulator *regulator)
return -EINVAL;
}

static inline int regulator_is_supported_voltage(struct regulator *regulator,
int min_uV, int max_uV)
{
return 0;
}

static inline int regulator_set_current_limit(struct regulator *regulator,
int min_uA, int max_uA)
{
Expand Down

0 comments on commit 4fe2379

Please sign in to comment.