summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Muellner <christoph.muellner@theobroma-systems.com>2015-05-12 20:56:47 +0200
committerKlaus Goger <klaus.goger@theobroma-systems.com>2015-07-30 18:53:00 +0200
commite9e3fcffe8f77bd1f3f583eec624307568b6ae1e (patch)
tree75fe230c195f89faed6c07651ffc29a9c6a5eb76
parent72699c7702b0cf32f3bb89dc9d106a7b0b268abc (diff)
Regulator: axp20x: Enable support or set_voltage_time_sel.
The cpufreq operating points from the cpufreq-dt driver allows to define the property 'clock-latency' which is intended to be a delay used between changing the voltage and changing the frequency. This patch sets the set_voltage_time_sel function pointer to the default implementation from regulator/core.c. Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
-rw-r--r--drivers/regulator/axp20x-regulator.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x-regulator.c
index 1dea0e8353e..78472cb833c 100644
--- a/drivers/regulator/axp20x-regulator.c
+++ b/drivers/regulator/axp20x-regulator.c
@@ -148,6 +148,7 @@ static struct regulator_ops axp20x_ops_table = {
.enable = regulator_enable_regmap,
.disable = regulator_disable_regmap,
.is_enabled = regulator_is_enabled_regmap,
+ .set_voltage_time_sel = regulator_set_voltage_time_sel,
};
static struct regulator_ops axp20x_ops = {
@@ -157,6 +158,7 @@ static struct regulator_ops axp20x_ops = {
.enable = regulator_enable_regmap,
.disable = regulator_disable_regmap,
.is_enabled = regulator_is_enabled_regmap,
+ .set_voltage_time_sel = regulator_set_voltage_time_sel,
};
static struct regulator_ops axp20x_ops_sw = {
@@ -165,6 +167,7 @@ static struct regulator_ops axp20x_ops_sw = {
.enable = regulator_enable_regmap,
.disable = regulator_disable_regmap,
.is_enabled = regulator_is_enabled_regmap,
+ .set_voltage_time_sel = regulator_set_voltage_time_sel,
};
static const struct regulator_desc axp20x_regulators[] = {