public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] regulators: Add definition of regulator_set_voltage_time() for !CONFIG_REGULATOR
@ 2014-05-27 12:07 Viresh Kumar
  2014-05-27 12:07 ` [PATCH V2 2/2] cpufreq: cpufreq-cpu0: remove dependency on THERMAL and REGULATOR Viresh Kumar
  2014-05-27 19:29 ` [PATCH 1/2] regulators: Add definition of regulator_set_voltage_time() for !CONFIG_REGULATOR Mark Brown
  0 siblings, 2 replies; 29+ messages in thread
From: Viresh Kumar @ 2014-05-27 12:07 UTC (permalink / raw)
  To: rjw
  Cc: linaro-kernel, linux-pm, linux-kernel, arvind.chauhan, edubezval,
	pavel, lgirdwood, broonie, Viresh Kumar

We already have dummy implementation for most of the regulators APIs for
!CONFIG_REGULATOR case and were missing it for regulator_set_voltage_time().

Found this issue while compiling cpufreq-cpu0 driver without regulators support
in kernel.

drivers/cpufreq/cpufreq-cpu0.c: In function ‘cpu0_cpufreq_probe’:
drivers/cpufreq/cpufreq-cpu0.c:186:3: error: implicit declaration of function ‘regulator_set_voltage_time’ [-Werror=implicit-function-declaration]

Fix this by adding dummy definition for regulator_set_voltage_time().

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
---
Liam/Broonie: Please see if this can go through Rafael as 2nd patch is dependent
on it.

 include/linux/regulator/consumer.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/linux/regulator/consumer.h b/include/linux/regulator/consumer.h
index 1a4a8c1..0cfc286 100644
--- a/include/linux/regulator/consumer.h
+++ b/include/linux/regulator/consumer.h
@@ -397,6 +397,12 @@ static inline int regulator_set_voltage(struct regulator *regulator,
 	return 0;
 }
 
+static inline int regulator_set_voltage_time(struct regulator *regulator,
+					     int old_uV, int new_uV)
+{
+	return 0;
+}
+
 static inline int regulator_get_voltage(struct regulator *regulator)
 {
 	return -EINVAL;
-- 
2.0.0.rc2


^ permalink raw reply related	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2014-06-04 12:33 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-27 12:07 [PATCH 1/2] regulators: Add definition of regulator_set_voltage_time() for !CONFIG_REGULATOR Viresh Kumar
2014-05-27 12:07 ` [PATCH V2 2/2] cpufreq: cpufreq-cpu0: remove dependency on THERMAL and REGULATOR Viresh Kumar
2014-05-27 19:29 ` [PATCH 1/2] regulators: Add definition of regulator_set_voltage_time() for !CONFIG_REGULATOR Mark Brown
2014-05-27 23:12   ` Rafael J. Wysocki
2014-05-28 17:37     ` Mark Brown
2014-05-28 16:29   ` Viresh Kumar
2014-05-28 17:38     ` Mark Brown
2014-06-02  7:20       ` Viresh Kumar
2014-06-02  9:51         ` Mark Brown
2014-06-02  9:54           ` Viresh Kumar
2014-06-02 10:02             ` Mark Brown
2014-06-02 10:15               ` Viresh Kumar
2014-06-02 12:23                 ` Mark Brown
2014-06-02 13:14                   ` Viresh Kumar
2014-06-02 15:20                     ` Mark Brown
2014-06-02 16:55                       ` Viresh Kumar
2014-06-03 10:52                         ` Mark Brown
2014-06-03 14:40       ` Viresh Kumar
2014-06-03 14:53         ` Mark Brown
2014-06-03 15:22           ` Viresh Kumar
2014-06-03 15:32             ` Mark Brown
2014-06-03 15:35               ` Viresh Kumar
2014-06-03 16:02                 ` Mark Brown
2014-06-03 15:25           ` Viresh Kumar
2014-06-03 15:48             ` Mark Brown
2014-06-04  5:46               ` Viresh Kumar
2014-06-04 10:38                 ` Mark Brown
2014-06-04 10:57                   ` Viresh Kumar
2014-06-04 12:33                     ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox