diff options
author | Guodong Xu <guodong.xu@linaro.org> | 2013-05-04 09:00:38 +0800 |
---|---|---|
committer | Guodong Xu <guodong.xu@linaro.org> | 2013-07-25 12:38:38 +0800 |
commit | 733c74983d480526e36c374e1b58babe26b69ed5 (patch) | |
tree | 8fea8de2931c6066246d61f8326e6cd72c8a7d7e | |
parent | 269381cdf7c380422680432eb005153bb3f046f5 (diff) |
regulator: hi6421: enable DRMStopic-regulator-modes-enabled
Hi6421 regulators: enable DRMS. regulator_set_optimum_mode() can now
be used in hi6421 regulators
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
-rw-r--r-- | drivers/regulator/hi6421-regulator.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/regulator/hi6421-regulator.c b/drivers/regulator/hi6421-regulator.c index 9a1313921c6a..a68b1cb78483 100644 --- a/drivers/regulator/hi6421-regulator.c +++ b/drivers/regulator/hi6421-regulator.c @@ -497,7 +497,8 @@ static int hi6421_regulator_probe(struct platform_device *pdev) /* hi6421 regulator supports two modes */ c = &initdata->constraints; c->valid_modes_mask = REGULATOR_MODE_NORMAL | REGULATOR_MODE_IDLE; - c->valid_ops_mask |= REGULATOR_CHANGE_MODE; + c->valid_ops_mask |= (REGULATOR_CHANGE_MODE | REGULATOR_CHANGE_DRMS); + c->input_uV = c->min_uV; sreg = kmemdup(template, sizeof(*sreg), GFP_KERNEL); if (!sreg) |