diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-05-26 05:56:13 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-05-27 07:25:57 -0400 |
commit | ab3ca774a2b78e7b8c09a75b634fb872b96e675c (patch) | |
tree | ae9208765e8a3039979497e5edad22da19ed16f3 /drivers/regulator | |
parent | fe788b09552d1ea318d80d50962d3af69fbb0dbc (diff) |
regulator: pfuze100: Support enable/disable for fixed regulator
Current code has .enable_reg and .enable_mask settings, but the implementation
for corresponding callbacks are missing. Fix it.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Tested-by: Robin Gong <b38343@freescale.com>
Acked-by: Robin Gong <b38343@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/pfuze100-regulator.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100-regulator.c index 930eb137427d..c879dff597ee 100644 --- a/drivers/regulator/pfuze100-regulator.c +++ b/drivers/regulator/pfuze100-regulator.c | |||
@@ -125,6 +125,9 @@ static struct regulator_ops pfuze100_ldo_regulator_ops = { | |||
125 | }; | 125 | }; |
126 | 126 | ||
127 | static struct regulator_ops pfuze100_fixed_regulator_ops = { | 127 | static struct regulator_ops pfuze100_fixed_regulator_ops = { |
128 | .enable = regulator_enable_regmap, | ||
129 | .disable = regulator_disable_regmap, | ||
130 | .is_enabled = regulator_is_enabled_regmap, | ||
128 | .list_voltage = regulator_list_voltage_linear, | 131 | .list_voltage = regulator_list_voltage_linear, |
129 | }; | 132 | }; |
130 | 133 | ||