Skip to content

Commit

Permalink
regulator: arizona-ldo1: Implement GPIO enable support
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Jul 3, 2012
1 parent 495fd8c commit a9905b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/regulator/arizona-ldo1.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ static const struct regulator_desc arizona_ldo1 = {
};

static const struct regulator_init_data arizona_ldo1_default = {
.constraints = {
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
},
.num_consumer_supplies = 1,
};

Expand Down Expand Up @@ -88,6 +91,7 @@ static __devinit int arizona_ldo1_probe(struct platform_device *pdev)
config.dev = arizona->dev;
config.driver_data = ldo1;
config.regmap = arizona->regmap;
config.ena_gpio = arizona->pdata.ldoena;

if (arizona->pdata.ldo1)
config.init_data = arizona->pdata.ldo1;
Expand Down

0 comments on commit a9905b1

Please sign in to comment.