aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-06-27 09:32:06 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-07-03 15:29:30 -0400
commita9905b1d6fa80a07997520c7f554aedf3e1b47e7 (patch)
tree8d9756a535fc4e804de23b734e6aa527401e7ab7 /drivers/regulator
parent495fd8c8fdefebf545f8ea01d10ae7b812931c27 (diff)
regulator: arizona-ldo1: Implement GPIO enable support
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/arizona-ldo1.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/regulator/arizona-ldo1.c b/drivers/regulator/arizona-ldo1.c
index 51f02cac443f..c8f95c07adb6 100644
--- a/drivers/regulator/arizona-ldo1.c
+++ b/drivers/regulator/arizona-ldo1.c
@@ -57,6 +57,9 @@ static const struct regulator_desc arizona_ldo1 = {
57}; 57};
58 58
59static const struct regulator_init_data arizona_ldo1_default = { 59static const struct regulator_init_data arizona_ldo1_default = {
60 .constraints = {
61 .valid_ops_mask = REGULATOR_CHANGE_STATUS,
62 },
60 .num_consumer_supplies = 1, 63 .num_consumer_supplies = 1,
61}; 64};
62 65
@@ -88,6 +91,7 @@ static __devinit int arizona_ldo1_probe(struct platform_device *pdev)
88 config.dev = arizona->dev; 91 config.dev = arizona->dev;
89 config.driver_data = ldo1; 92 config.driver_data = ldo1;
90 config.regmap = arizona->regmap; 93 config.regmap = arizona->regmap;
94 config.ena_gpio = arizona->pdata.ldoena;
91 95
92 if (arizona->pdata.ldo1) 96 if (arizona->pdata.ldo1)
93 config.init_data = arizona->pdata.ldo1; 97 config.init_data = arizona->pdata.ldo1;