From e9e3fcffe8f77bd1f3f583eec624307568b6ae1e Mon Sep 17 00:00:00 2001 From: Christoph Muellner Date: Tue, 12 May 2015 20:56:47 +0200 Subject: 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 --- drivers/regulator/axp20x-regulator.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x-regulator.c index 1dea0e8353e0..78472cb833c4 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[] = { -- cgit v1.2.3