Commit a9905b1d authored by Mark Brown's avatar Mark Brown

regulator: arizona-ldo1: Implement GPIO enable support

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 495fd8c8
...@@ -57,6 +57,9 @@ static const struct regulator_desc arizona_ldo1 = { ...@@ -57,6 +57,9 @@ static const struct regulator_desc arizona_ldo1 = {
}; };
static const struct regulator_init_data arizona_ldo1_default = { static const struct regulator_init_data arizona_ldo1_default = {
.constraints = {
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
},
.num_consumer_supplies = 1, .num_consumer_supplies = 1,
}; };
...@@ -88,6 +91,7 @@ static __devinit int arizona_ldo1_probe(struct platform_device *pdev) ...@@ -88,6 +91,7 @@ static __devinit int arizona_ldo1_probe(struct platform_device *pdev)
config.dev = arizona->dev; config.dev = arizona->dev;
config.driver_data = ldo1; config.driver_data = ldo1;
config.regmap = arizona->regmap; config.regmap = arizona->regmap;
config.ena_gpio = arizona->pdata.ldoena;
if (arizona->pdata.ldo1) if (arizona->pdata.ldo1)
config.init_data = arizona->pdata.ldo1; config.init_data = arizona->pdata.ldo1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment