diff options
author | Li Jun <jun.li@nxp.com> | 2016-01-15 17:17:56 +0800 |
---|---|---|
committer | Li Jun <jun.li@nxp.com> | 2016-01-19 16:29:05 +0800 |
commit | 0f9a3e67a8cd59cba594808a5ddf4b91257b1a49 (patch) | |
tree | fc1a90fd0d12992146841644257f973daea4c5a0 /drivers/regulator | |
parent | 694a35dc0cdac438ed23ac924027ddfa1cb1d0d9 (diff) |
MLK-12173 regulator: pfuze100: add .is_enable() for pfuze100_swb_regulator_ops
If is_enabled() is not defined in its ops, regulator core will assume
this regulator is already enabled, then we never can really enable it
after disabled.
Signed-off-by: Li Jun <jun.li@nxp.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/pfuze100-regulator.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100-regulator.c index 0727c2c13721..e8099f4c2738 100644 --- a/drivers/regulator/pfuze100-regulator.c +++ b/drivers/regulator/pfuze100-regulator.c @@ -170,6 +170,7 @@ static struct regulator_ops pfuze100_sw_regulator_ops = { static struct regulator_ops pfuze100_swb_regulator_ops = { .enable = regulator_enable_regmap, .disable = regulator_disable_regmap, + .is_enabled = regulator_is_enabled_regmap, .list_voltage = regulator_list_voltage_table, .map_voltage = regulator_map_voltage_ascend, .set_voltage_sel = regulator_set_voltage_sel_regmap, |