* [PATCH] regulator: add missing defintion regulator_is_supported_voltage
@ 2012-06-30 23:05 philipspatches
2012-07-01 18:10 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: philipspatches @ 2012-06-30 23:05 UTC (permalink / raw)
To: linux-kernel, broonie; +Cc: cjb, linux-mmc, Philip Rakity
From: Philip Rakity <prakity@marvell.com>
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>
---
include/linux/regulator/consumer.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h
index 4ed1b30..42eac1c 100644
--- a/include/linux/regulator/consumer.h
+++ b/include/linux/regulator/consumer.h
@@ -294,6 +294,12 @@ static inline int regulator_get_voltage(struct regulator *regulator)
return 0;
}
+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)
{
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] regulator: add missing defintion regulator_is_supported_voltage
2012-06-30 23:05 [PATCH] regulator: add missing defintion regulator_is_supported_voltage philipspatches
@ 2012-07-01 18:10 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2012-07-01 18:10 UTC (permalink / raw)
To: philipspatches; +Cc: linux-kernel, cjb, linux-mmc, Philip Rakity
[-- Attachment #1: Type: text/plain, Size: 424 bytes --]
On Sat, Jun 30, 2012 at 04:05:36PM -0700, philipspatches@gmail.com wrote:
> From: Philip Rakity <prakity@marvell.com>
>
> 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
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-01 18:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-30 23:05 [PATCH] regulator: add missing defintion regulator_is_supported_voltage philipspatches
2012-07-01 18:10 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox