regulator: arizona-ldo1: Implement GPIO enable support
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 27 Jun 2012 13:32:06 +0000 (14:32 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 3 Jul 2012 19:29:30 +0000 (20:29 +0100)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/arizona-ldo1.c

index 51f02cac443fa2fb5f09e2149220a1b8fa60b0db..c8f95c07adb63aea4d174c9eab659ba11bcb5dea 100644 (file)
@@ -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,
 };
 
@@ -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;