Skip to content

Commit

Permalink
regulator: pfuze100: Support enable/disable for fixed regulator
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
AxelLin authored and broonie committed May 27, 2014
1 parent fe788b0 commit ab3ca77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/regulator/pfuze100-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ static struct regulator_ops pfuze100_ldo_regulator_ops = {
};

static struct regulator_ops pfuze100_fixed_regulator_ops = {
.enable = regulator_enable_regmap,
.disable = regulator_disable_regmap,
.is_enabled = regulator_is_enabled_regmap,
.list_voltage = regulator_list_voltage_linear,
};

Expand Down

0 comments on commit ab3ca77

Please sign in to comment.