regulator: pfuze100: Support enable/disable for fixed regulator
authorAxel Lin <axel.lin@ingics.com>
Mon, 26 May 2014 09:56:13 +0000 (17:56 +0800)
committerMark Brown <broonie@linaro.org>
Tue, 27 May 2014 11:25:57 +0000 (12:25 +0100)
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>
drivers/regulator/pfuze100-regulator.c

index 930eb137427d6ff9dd6e6cd41c9327a75104ffe6..c879dff597eeaba773468b66a71526a9ca1fb5e8 100644 (file)
@@ -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,
 };