diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2014-05-27 08:07:29 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-05-28 13:49:26 -0400 |
commit | d660e92a97aac08aa33cd41e00a325066e00f1ef (patch) | |
tree | c8c735573d5c959e3f5ac7fc9004b14677062468 | |
parent | c9eaa447e77efe77b7fa4c953bd62de8297fd6c5 (diff) |
regulators: Add definition of regulator_set_voltage_time() for !CONFIG_REGULATOR
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>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | 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 e530681bea70..94719e8dce04 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, | |||
397 | return 0; | 397 | return 0; |
398 | } | 398 | } |
399 | 399 | ||
400 | static inline int regulator_set_voltage_time(struct regulator *regulator, | ||
401 | int old_uV, int new_uV) | ||
402 | { | ||
403 | return 0; | ||
404 | } | ||
405 | |||
400 | static inline int regulator_get_voltage(struct regulator *regulator) | 406 | static inline int regulator_get_voltage(struct regulator *regulator) |
401 | { | 407 | { |
402 | return -EINVAL; | 408 | return -EINVAL; |