diff mbox

regulator: add missing prototype for regulator_is_supported_voltage

Message ID CAMPhdO8uuNmdiaejcypOH77rsU2ZR+dov73KXyAsbAfW0tKmcA@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Eric Miao Nov. 21, 2012, 9:22 a.m. UTC
Hi Mark,

Looks to be a simple omission there. Patch is from Philip Rakity, I
just did review and by-passing here.

From d015139ac621e10d5d9c0d3e427e9517b08fe772 Mon Sep 17 00:00:00 2001
From: Philip Rakity <prakity@nvidia.com>
Date: Tue, 20 Nov 2012 18:07:41 +0100
Subject: [PATCH] regulator: add missing prototype for
regulator_is_supported_voltage

avoids needs for CONFIG_REGULATOR in sdhci.c

Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-by: Eric Miao <eric.y.miao@gmail.com>
---
 include/linux/regulator/consumer.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

 static inline int regulator_set_voltage_tol(struct regulator *regulator,
--
1.7.0.4
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Mark Brown Nov. 21, 2012, 9:43 a.m. UTC | #1
On Wed, Nov 21, 2012 at 05:22:02PM +0800, Eric Miao wrote:

> +static inline int regulator_count_voltages(struct regulator *regulator)
> +{
> + return 0;
> +}

Looks like your mailer has mangled everything so this won't apply.
Eric Miao Nov. 21, 2012, 9:45 a.m. UTC | #2
git-send-email stopped working so I have to use the web interface.
Could you help
try the attached one?

On Wed, Nov 21, 2012 at 5:43 PM, Mark Brown
<broonie@opensource.wolfsonmicro.com> wrote:
> On Wed, Nov 21, 2012 at 05:22:02PM +0800, Eric Miao wrote:
>
>> +static inline int regulator_count_voltages(struct regulator *regulator)
>> +{
>> + return 0;
>> +}
>
> Looks like your mailer has mangled everything so this won't apply.
Mark Brown Nov. 21, 2012, 10:05 a.m. UTC | #3
On Wed, Nov 21, 2012 at 05:45:57PM +0800, Eric Miao wrote:
> git-send-email stopped working so I have to use the web interface.
> Could you help
> try the attached one?

OK.  I take it's OK to add your signoff as well (you should always add
this for patches you forward)?
Eric Miao Nov. 21, 2012, 10:06 a.m. UTC | #4
On Wed, Nov 21, 2012 at 6:05 PM, Mark Brown
<broonie@opensource.wolfsonmicro.com> wrote:
> On Wed, Nov 21, 2012 at 05:45:57PM +0800, Eric Miao wrote:
>> git-send-email stopped working so I have to use the web interface.
>> Could you help
>> try the attached one?
>
> OK.  I take it's OK to add your signoff as well (you should always add
> this for patches you forward)?

Yep, that's fine.
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Mark Brown Nov. 21, 2012, 10:09 a.m. UTC | #5
On Wed, Nov 21, 2012 at 06:06:12PM +0800, Eric Miao wrote:

> Yep, that's fine.

Applied, thanks.
diff mbox

Patch

diff --git a/include/linux/regulator/consumer.h
b/include/linux/regulator/consumer.h
index c43cd35..4e3ec91 100644
--- a/include/linux/regulator/consumer.h
+++ b/include/linux/regulator/consumer.h
@@ -358,6 +358,10 @@  static inline void regulator_set_drvdata(struct
regulator *regulator,
 {
 }

+static inline int regulator_count_voltages(struct regulator *regulator)
+{
+ return 0;
+}
 #endif