提交 a9905b1d 编写于 作者: M Mark Brown

regulator: arizona-ldo1: Implement GPIO enable support

Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 495fd8c8
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册